jQuery in Action, 2nd edition*
The moose likes JSF and the fly likes toggle h:commandLink ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "toggle h:commandLink ??" Watch "toggle h:commandLink ??" New topic
Author

toggle h:commandLink ??

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
Hello,

I use JSF and Facelets..

I have a link



So when I press the link, I only wanna have substitute the link above to this link below:


For short: I wanna have a toogle-Link. How can I do that? With c:if or ui:decorate ?? I have nooo clue?

Thanks for helping!
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Hello Nimo,

You could use the render attribute of the commandLink tag, to render on a particular value, and that value you can set in your "do" bean in the "it" and "that" methods.
 
Consider Paul's rocket mass heater.
 
subject: toggle h:commandLink ??
 
Similar Threads
I need help with ajaxSingle, reRender and immediate.
commandLink with <rich:dataTable>, problem in pagination
problem in using richfaces
RichFaces with TabPanel and selectOneMenu not change the tab
javascript error while selecting value from combo box