I’m trying to submit the page and forward to a new JSP.
h:outputlink will only send me to a new link without submitting the page.
h:commandlink requires me to implement a backing bean function and navigation rule which is quite complex if I have many links sending me to many pages.
I’m thinking there’s got to be a way to submit and navigate to a new page in a more simple manner.
Anyone?
Tnx!
Update: Used the next navigation rule in conjuction with Bozho answer.
Works for Chrome but not for IE and Firefox: (Doesn’t Work Meaning the redirection doesn’t occur and the browser reloads the same page)
This Component: (Shortened)
<rich:panelMenu mode="server">
<rich:panelMenuItem styleClass="configChooserButton" icon="images/email.png"
disabledClass="configChooserButtonDisabled">
<h:commandLink value="Email (#{email.numOfInstances})" action="email" />
</rich:panelMenuItem>
</rich:panelMenu>
With this Navigation Rule:
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>email</from-outcome>
<to-view-id>/emailConfiguration.jsp</to-view-id>
</navigation-case>
</navigation-rule>
Yes – in the
actionattribute of<h:commandLink>specify the name of the navigation outcome (as defined infaces-config.xml)