This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes commandLink Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "commandLink Problem" Watch "commandLink Problem" New topic
Author

commandLink Problem

Yogesh Agrawal
Greenhorn

Joined: Nov 10, 2006
Posts: 4
Hi,
I am facing an issue with JSF commandLink
Here is the code for the home.jsp
<h:commandLink id="cacheLink" action="showcache">
<hutputText value="View Cache" />
</h:commandLink>

and here is faces-config

<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>showcache</from-outcome>
<to-view-id>/pages/cache.jsp</to-view-id>
</navigation-case>
</navigation-rule>

But it doesn't take me to cache.jsp. The only change i see is the url now it becomes home.jsp#. Any help will be appreciated.

Thanks,
Yogesh
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

Try this :



Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: commandLink Problem
 
Similar Threads
Navigation using h:commandLink
commandLink not working properly
Redirecting to another page in Bean
JSF Forward Just posting Back
can't back to previous page in JSF