This content has been marked as final.
Show 2 replies
-
1. Re: Syntax for linking to got to a different page
kenfinni Dec 15, 2011 12:55 PM (in response to polkaudio29)Your command link probably just needs to be something like:
<h:commandLink id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
And then in pages.xml (for Seam 2), or the equivalent for pure JSF, you can specify that the navigation from that action redirects to a different page. Such as:
<page view-id="/main.xhtml"> <navigation from-action="#{hotelBooking.selectHotel(hot)}"> <render view-id="/hotel.xhtml"/> </navigation> </page>
Hope that helps
-
2. Re: Syntax for linking to got to a different page
polkaudio29 Dec 20, 2011 5:11 PM (in response to kenfinni)Ken, thanks for the response.
In a pure web app, just the action method returning the right URL works, but not in a portlet.
It worked, my mistake was I had not configured the page navigation in faces-config, after doing that it worked.