On the ‘myisp.jsp’ page below I include a command button that when pressed should return the user to the ‘searchisp.jsp’ page.  Instead, nothing happens when the button is pressed (stays on myisp.jsp page) – can anyone see what may be wrong?  I also tried a commandLink which did not work either.

 

Also, when I link back to the ‘searchisp.jsp’ page, I want to be able to link back to the exact page within the search results the user was viewing – for example, the ‘searchisp.jsp’ page uses a t:dataTable and t:dataScroller to scroll through large result sets – I want to take the user back to the exact page within the t:dataScroller they were viewing before – this is similar to a shopping cart app – the user scrolls through the products, selects a product, is taken to the shopping cart – when they return from the cart I want to take them back to the same product page.  Any suggestions or examples I can refer to implement this?

 

 

<%--  myisp.jsp --%>

<f:view

<h:form>                     

<t:dataTable id="myispdata" var="isp" value="#{myispbean.arrlist}">

<h:column>

<h:outputText value="#{isp.id}" />

</h:column>

</t:dataTable>

<h:commandButton action="search" value="Return to Search" />

</h:form>

</f:view>

 

<%-- faces-config.xml --%>

<navigation-rule>

<from-view-id>/myisp.jsp</from-view-id>

<navigation-case>

<from-outcome>search</from-outcome>

<to-view-id>/searchisp.jsp</to-view-id>

</navigation-case>

</navigation-rule>

 

Thanks

Tom

Reply via email to