i want to convert a Javascript component to JSF 2.0 Component . I have created simple JSF 2.0 custom components now i want to convert complex JScript component to JSF. I know i have to write my own Component Classes,Renderers,TagHandlers,EventListeners etc but i don't know how to start it. any help will by appreciated.
You don't need to convert it , you just need to integrate an existing js/jquery component into JSF reusable one, primefaces did a great work with integrating existing jquery components into a reusable JSF components , so INMO you can go and take a look at primefaces source code to get the general idea... primefaces-3.4.1-sources.jar
For example take a look at this COLOR PICKER - JQUERY PLUGIN
Here its on primefaces showcase Color Picker
Look for its implementation in primefaces primefaces-3.4.1-sources\\org\\primefaces\\component\\colorpicker
Also look at the primefaces-3.4.1-sources\\META-INF\\resources\\primefaces\\colorpicker
I think this could give you some hints...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.