Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Are JSF components solely JavaScript widgets using Ajax?  RSS feed

 
John Chumley
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I look at all the showcase from various "faces" components, I see lots of Javascript, powered by jQuery, etc.

Where's the Java part of things?

Are JSF component simply JavaScript Ajax widgets?

What makes a JSF component different than say a regular old webpage using jQuery to do something in Ajax to a PHP back end script?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, JSF components are not JavaScript widgets. In fact, the core JSF version 1 components had no javascript in them at all.

JSF2 (and many of the extension tagsets for JSF1) support AJAX, and AJAX is - well Asynchronous JavaScript And Xml.

Rather than re-invent AJAX from scratch, the jQuery library is commonly pulled in "under the hood" to handle the grunt work for AJAX for JSF2.

Many extension tags are also smarter or more complex than the raw HTML tags supported by the JSF core and often they do have supporting client-side Javascript logic.

The JavaScript is just icing on the cake, however. The real processing is done on the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!