tag:blogger.com,1999:blog-36773632.post989060363967309502..comments2023-12-19T08:40:05.062-05:00Comments on Java Evangelist John Yeary: JSF Tip of the Day: Adding Javascript to a Custom ComponentJohn Yearyhttp://www.blogger.com/profile/00461192445071361043noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-36773632.post-16345746094077939742013-03-15T07:25:59.630-05:002013-03-15T07:25:59.630-05:00Thanks a lot for this helpful snippet!Thanks a lot for this helpful snippet!padmalcomhttps://www.blogger.com/profile/06864899760103858233noreply@blogger.comtag:blogger.com,1999:blog-36773632.post-86836345336331807722012-08-07T07:35:28.736-05:002012-08-07T07:35:28.736-05:00Perhaps you missed the point in the article. This ...Perhaps you missed the point in the article. This is a mechanism for adding in a framework, or Javascript into a custom component. There are a number of frameworks like Mojarra, and PrimeFaces which have Javascript baked into them already like Tapestry. <br /><br />If you are injecting resources like Javascript you can use the @Resources annotation similar to Tapestry. The scripting still needs to be bound in Tapestry like JSF.<br /><br />The one thing I like in the code I posted is that it checks to see if the resource has already been included in the page.<br /><br />Anyway, thanks for the comment. I like Tapestry. I just like JSF more. I found I was more productive with it, and it is a standard with multiple implementations. <br /><br />That being said, I would recommend that any sensible developer take a look a few frameworks before and try them out. Choose the one that makes you productive, and achieves the objectives you are after.John Yearyhttps://www.blogger.com/profile/00461192445071361043noreply@blogger.comtag:blogger.com,1999:blog-36773632.post-75364577436694599582012-08-06T08:48:19.369-05:002012-08-06T08:48:19.369-05:00Good tip for those who have to deal with JSF.
It...Good tip for those who have to deal with JSF. <br /><br />It is also a perfect example of why I'm not using JSF - the complexity of dealing w/ it is just overwhelming. Why couldn't this framework (that was supposed to be the mother of all web frameworks) bake this functionality out of the box (e.g just like Tapestry does - http://tapestry.apache.org/javascript.html) ?Alex Kochnevhttps://www.blogger.com/profile/05519996133043093264noreply@blogger.com