This content has been marked as final.
Show 3 replies
-
1. custom coponents
boy18nj Mar 2, 2011 11:57 AM (in response to pradeep_nayak)you don't need to write custom component, use this way, you can include javascript code in onlclick attribute-
<h:commandLink action="" value="" onclick="alert('hey, I'm working')"/>
-
2. custom coponents
danielk Mar 2, 2011 4:51 PM (in response to boy18nj)But if you write this JS-Code in all your commandLinks this breaks the DRY-Principle
I am also interested in custom components. If this is possible, please give us a hint.
-
3. custom coponents
ilya_shaikovsky Mar 3, 2011 2:55 AM (in response to danielk)I do not think you need custom component there. If you in a JSF 2 world you could just create behavior. And in JSF 1.2 - create custom facelet and re-use across all the pages. Or just attach your handler using jQuery to all the links on the page