This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:commandLink Alternative

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking to display a link on my web page and when that link is clicked a javascript would be executed, i i use a commandLink the page would get (or appear to get) submitted, is there a tag in JSF that just converts to <a> and does not submit the page
 
Ganesha Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the tag <hutputLink>. The value attribute of this tag will be used as href attribute of the anchor tag. For the value attribute, you can provide the javascript function as the value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic