Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

commandLink Problem

 
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: 1874
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this :

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic