This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

commandLink Problem  RSS feed

 
Yogesh Agrawal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this :

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!