Fixed this issue.

 


From: Tom Butler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 31, 2006 11:28 PM
To: 'MyFaces Discussion'
Subject: can anyone see problem with navigation code?

 

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.

 

<%--  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