Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 page1 中使用命令按钮。如果按下命令按钮,则流程转到第 2 页。我想仅在按下 page1 中的命令按钮时才在 page2 中显示一个对话框(因此如果直接打开 page2 则不会)。我怎样才能做到这一点?
只需使用visible属性。EL 表达式的计算结果必须为 a boolean。
visible
boolean
例如
<p:dialog ... visible="#{bean.page1CommandButtonClicked}">