Hi All,
I have a JSF application that is consists of 5 pages. The first one is clear JSP page where the user have the possibility to logged in the application. After the user has been successfully authorized the JSF page redirects to JSF page that displays list of items.So far so good, but when the list of items contains only one item I want to redirect directly to the third page that displays the description of the selected item from the second page. The second page pass the item id with the following code:
<h:commandLink action="ItemDescription" actionListener="#{itemDesc.processAction}">
<f:param name="item_id" value="#{MyItem.id}"></f:param>
<h:outputText value="#{MyItem.name}"></h:outputText>
</h:commandLink>
Currently I can redirect to the third page by using FacesContext.getCurrentInstance().getExternalContext().redirect("Third.faces") but I don't know how to set the parameter item_id.
Do you have any suggestions?