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.

[961 byte] By [Jhonny_Bravoa] at [2007-10-2 17:52:19]
# 1
You have an error<hutputText value="#{searchBean.id}" />should be:<h:outputText value="#{searchBean.id}" />
pringia at 2007-7-13 19:10:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

<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 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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.

Jhonny_Bravoa at 2007-7-13 19:10:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
a) Are you sure you have a searchBean with a id property?b) Do you have searchBean on faces-config?c) Your page is really called index.jsp?d)Change generalInfo.faces to generalInfo.jspe) Does generalInfo.jsp really exists?
pringia at 2007-7-13 19:10:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
ya i have everything in place that has been asked for.... the other thing which might have caused this problem is that i have a headerPage that i have included in my page this pages for links to other pages.... this page does'nt not have any jsf component to it... can this be a problem ?
Jhonny_Bravoa at 2007-7-13 19:10:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
I don't think so.I've the same that you have, and no problems.
pringia at 2007-7-13 19:10:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...