I am new to the web programming world and was tasked with creating new widgets . These would be html widgets. But am not sure on how to proceed. Would any kind soul provide any information on how one would go about creating/building html widgets.
Is there a framework to build html widgets ? If you had a war file could you also create a widget for it.
thanks in advance
I would say that jQuery as a core platform is almost essential. Whether you want to pattern your widgets on the jQuery UI set is entirely another matter. (Note they jQuery UI is a widget set based on jQuery, not to be confused with jQuery itself.)
Thanks Bear for your prompt reply ,appreciate the link to jQuery UI, it appears to be more in line with what I am trying to achieve. How will this also help me building a portable widget. For example lets say I built a web app that displays the temp and I have a war file . How do I reuse this component/web widget on different jsps? A classic example would be the date widget , which already has built in functionality.
How will this also help me building a portable widget.
Probably won't. I just pointed to them to make sure that was the type of thing you were talking about.
For example lets say I built a web app that displays the temp and I have a war file . How do I reuse this component/web widget on different jsps?
If we are truly talking about client-side widgetry, then the fact that there is a war file, and that the HTML is generated from JSPs is completely irrelevant.
You could look at the sources for the jQuery UI widgets to see how they were written, but I'm not a particularly big fan of their approach. YMMV.
Btw, even though the 3rd edition of my book is still under construction, the info in jQuery in Action (2nd Ed) is still relevant. In chapter 7 I show how to write a photo slideshow widget (the Photo-matic!) as a jQuery plugin.
I will check out jQuery, out of curiosity you mentioned you are not a fan of the jquery UI widgets . Would you share you thoughts on why you don't like it . So it would give me some context while evaluating the pros and cons.
You mentioned that I could achieve it also via jQuery plugins . What is the difference between the UI widgets and plugins ? Is the widget built on top of plugins ...
It seems there are so many options to achieve a task jQuery ,Xtag, Polymer... now the fun part to figure which one. I did some goggling but could not find the what benefit Xtag had over jQuery for example . Would either of you gentle men be able to share your thoughts...
was reading a bit about x-tag and polymer. Had a few questions . I like the idea about having reusable components by creating custom mark to represent the functionality .But I hardly find any information on how to work with existing server side components .Is this still in its alpha stages . Is this production ready yet ? I don't find too many examples/samples on it integrating with server side components. I found out that we are using JSF2 (Richfaces). Would you know how this would kind of work with those type of server side applications, doesn't have to be JSF2 . Do you have any links or recommendations I could follow.
I found a lot of samples and code for JQuery to work with Rich-faces to help with this idea .