Monday, April 02, 2012

JSF 2.0 JQuery-JSF Integration

I am publishing an example of how to use jQuery with JSF. This is a basic jQuery Dialog which is integrated into a JSF 2.0 Reference Implementation (Mojarra) page.

There are a couple of JSF frameworks which take extensive use of jQuery like PrimeFaces which I would highly recommend.

This is just a simple example to show you how to get started.

Here is the NetBeans Apache Maven Mercurial project: jquery-jsf-integration

index.xhtml



included.xhtml


5 comments :

Howard Smith said...

+1 Like

http://forum.primefaces.org/viewtopic.php?f=3&t=20085

Unknown said...

Every aspiring Web developer should know about the power of JavaScript and how it can be used to enhance the ways in which people see and interact with Web pages. http://bit.ly/KXrI9u Fortunately, to help us be more productive, we can use the power of JavaScript libraries, and in this article we will take a good look at jQuery in action

John Yeary said...

The links in the article you sent are really cool jQuery functions. Thanks for the post.

华歆 said...

This is a very good tutorial but it is not working. I am using jquery-1.8.2.min.js, Juno Eclipse, jdk7, and m2eclipse. Any suggestion?

John Yeary said...

Did you try using Maven from the command line to build it and deploy it?

I would check to make sure Maven can build it first. In terms of Eclipse, I am sorry I don't really use it. The project should work right out of the box with NetBeans though.

If it is not working with Maven, or NetBeans, please let me know and I will see if I can help you further.

Popular Posts