File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "toggle h:commandLink ??" Watch "toggle h:commandLink ??" New topic

toggle h:commandLink ??

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580

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.
I agree. Here's the link:
subject: toggle h:commandLink ??
It's not a secret anymore!