I'm using JSF2 and GlassFish, PrimeFaces 2.1.
This works, showCreateProfile()
method gets hit, and the method returns "profileForm" and the browser redirects to that page:
<h:commandLink action="#{profileHandler.showCreateProfile}" value="#{msg.menu_createNewProfile}" />
However, this doesn't work, showCreateProfile()
method get hits, and the method returns "profileForm" but the browser does not redirect to the page. I tried three different things with no luck:
<p:commandLink action="#{profileHandler.showCreateProfile}" value="#{msg.menu_createNewProfile}" />
<p:commandLink action="#{profileHandler.showCreateProfile}" value="#{msg.menu_createNewProfile}" ajax="false" />
<p:commandLink action="#{profileHandler.showCreateProfile}" value="#{msg.menu_createNewProfile}" ajax="false" immediate="true"/>
Any ideas what I'm doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…