【发布时间】:2013-06-25 12:23:27
【问题描述】:
我想做这样的事情(根据某些情况重定向到不同的页面!):
<ui:fragment rendered="#{projectPageBean.availableMethods}">
<p:commandButton id="test"
value="View Instrument"
action="instrumentLayout?faces-redirect=false"/>
</ui:fragment>
<ui:fragment rendered="#{not projectPageBean.availableMethods}">
<p:commandButton id="test1"
value="View Instrument"
action="methodLayout?faces-redirect=false"/>
</ui:fragment>
但是这种构造似乎不起作用;永远不会执行action属性中的页面重定向!
我怎样才能正确处理这种行为?
【问题讨论】:
-
@cobalt:
<ui:fragment>和<h:panelGroup>都不是 RichFaces/PrimeFaces 特有的。它们只是标准 JSF 的一部分。
标签: jsf primefaces