aspose file tools*
The moose likes JSF and the fly likes New to JSF (Need help for setting up the jsf application with AJAX functionality) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "New to JSF (Need help for setting up the jsf application with AJAX functionality)" Watch "New to JSF (Need help for setting up the jsf application with AJAX functionality)" New topic
Author

New to JSF (Need help for setting up the jsf application with AJAX functionality)

David samueal
Greenhorn

Joined: Aug 03, 2011
Posts: 19
Hi All,

I am new to JSF, and i developed a sample JSF application, but i am totally confused how to use JSF with AJAX.

Am not pretty sure what all the JAR's required to set up a JSF application to support AJAX (a4j tags).

So, can anyone who knows the JSF application, can help by explaining the initial setups to create a JSF application also to use the AJAX tags.

Especially the required JARS and Required configuration to start up with before using AJAX in JSF. ( Note: Currently my application is supporting the RICHFACES tags without any problem :wink

Quick reply is much appreciated! ( Note: Am using Tomcate server 6 and eclipse for the development

Thanks,
D@ve
Yogesh Gnanapraksam
Ranch Hand

Joined: Dec 17, 2009
Posts: 133
This could be helpful..
http://weblogs.java.net/blog/cayhorstmann/archive/2009/01/a_simple_jsf2aj.html
David samueal
Greenhorn

Joined: Aug 03, 2011
Posts: 19


Hi .. Thank you so much for the reply!! I too got few examples of how AJAX integerated with JSF!!

But the real problem is the configuration for AJAX in my application.

Whenever i run the application am getting property not found exception(Manged bean) if i use a4j tag in my code.

If i put a fre a4j jars and rich-impl.jar's am getting some mismatched exception exception ( Especially : "Factory 'javax.faces.render.RenderKitFactory' was not configured properly" )

So kindly help me out the required jar's and setup i need to do for running the application using AJAX or requied JAR's for any JSF application using a4j tags.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16067
    
  21

Richfaces supports AJAX out of the box.

Although originally the a4j tags were separate, they've been part of the RichFaces package for a long time now, so only very obsolete documentation will tell you to handle them differently. If you follow the instructions in the RichFaces documentation, they'll tell you exactly what to do and you'll have both the "a4j" and "rich" tagsets available to any View definition that includes them in their namespace declarations. And, no, DON'T include any "a4j.jar" files. Like I said, that's long obsolete!


Customer surveys are for companies who didn't pay proper attention to begin with.
David samueal
Greenhorn

Joined: Aug 03, 2011
Posts: 19
Tim Holloway wrote:Richfaces supports AJAX out of the box.

Although originally the a4j tags were separate, they've been part of the RichFaces package for a long time now, so only very obsolete documentation will tell you to handle them differently. If you follow the instructions in the RichFaces documentation, they'll tell you exactly what to do and you'll have both the "a4j" and "rich" tagsets available to any View definition that includes them in their namespace declarations. And, no, DON'T include any "a4j.jar" files. Like I said, that's long obsolete!


Thanks Tim! Got clarified with the explanation! Cheers!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to JSF (Need help for setting up the jsf application with AJAX functionality)