• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

JQuery and JSF

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I would like to ask the authors if there is any connection between jQuery and JSF. I do not have any knowledge of jQuery, but know that it is a JavaScript DOM library as such I see very good use for it in JSF components which let me develop quicker, is it ease to integrate jQuery into JSF or a similiar component based framework?

Thanks,
george
 
Marshal
Posts: 67366
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To the extent that any JavaScript code or JavaScript library can be leveraged with JSF, jQuery is just as good a choice as any. There is no specific integration between JSF and jQuery if that's what you were wondering.
 
George Stoianov
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So in essence I can add it to any JSF or other component by adding the path to the source and the respective method calls. Does jQuery provide a way to perform browser detection and adjust the method calls and format automatically?

Thanks.
 
Bear Bibeault
Marshal
Posts: 67366
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using jQuery itself browser detection is never necessary -- it takes care of doing the right thing for the platform under the covers.

But for times when you need to branch on browsers in your own code, jQuery has a set of flags that it sets that you can use for branching.

For example:
 
George Stoianov
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really good. I assume that includes the UI components as well right?
 
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about comparison with GWT and jQuery..

I am not interested in learning new syntax where GWT works great but you can point out in detail..

Thanks
 
Bear Bibeault
Marshal
Posts: 67366
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to not derail George's original topic, I've spawned Ken's question off into its own topic.
[ January 16, 2008: Message edited by: Bear Bibeault ]
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!