Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

toggle h:commandLink ??  RSS feed

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!