Problem with commandLink
hello
i m having problems in redirecting to a different page using CommandLink in JSF.
In the jsp index.jsp i m trying to redirect to a different page, but the same index.jsp page is getting refreshed every time i click on the link.
The Jsf code in index.jsp and the faces-navigation.xml code is given below
<h:commandLink action="generalInfoIndex" immediate="true">
<hutputText value="#{searchBean.id}" />
</h:commandLink>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<description></description>
<from-outcome>generalInfoIndex</from-outcome>
<to-view-id>/generalInfo.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Thanks in advance.
<h:commandLink action="generalInfoIndex" immediate="true">
<h:outputText value="#{searchBean.id}" />
</h:commandLink>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<description></description>
<from-outcome>generalInfoIndex</from-outcome>
<to-view-id>/generalInfo.faces</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
ok one issue is identify by other person .. means error of h:ouputtext
and other is ..
not this <to-view-id>/generalInfo.jsp</to-view-id>
but use this
<to-view-id>/generalInfo.faces</to-view-id>
i hope this will work
but if not .. then only try this one
<navigation-case>
<description></description>
<from-outcome>generalInfoIndex</from-outcome>
<to-view-id>/generalInfo.faces</to-view-id>
<redirect/>
</navigation-case>
adeema at 2007-7-13 19:10:40 >

Hi i tried making the changes pointed out by u guys but still am facing the same problem. For reference i am attaching the changed codes
<h:commandLink action="generalInfoIndex" immediate="true">
<h:outputText value="#{searchBean.id}" />
</h:commandLink>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<description></description>
<from-outcome>generalInfoIndex</from-outcome>
<to-view-id>/generalInfo.faces</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Thanks in advance.