• 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