wood burning stoves 2.0*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: commandLink Problem