File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes h:commandLink Alternative Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandLink Alternative" Watch "h:commandLink Alternative" New topic
Author

h:commandLink Alternative

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
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

Joined: May 04, 2006
Posts: 56
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.
 
jQuery in Action, 2nd edition
 
subject: h:commandLink Alternative