Problem Description
This solution demonstrates the power of combining AJAX techniques with JavaServer Faces. It leverages some of the JavaScript code from the Progress Bar solution while delivering a very simple experience to the page author.
How do I create a renderer that generates JavaScript and form elements that sync up?
How do processs AJAX requests using the FacesServlet? How does this work with the faces life-cycle model?
How do I create a renderer that produces XML responses for AJAX requests and HTML for others?
How does this type of processing effect performace with many small requests?
Solution
JSF and AJAX are a great match because they allow the component developer to provide a fully rich, AJAXian component, but hide all of the javascript from the page author, as well as removing the need for a separate servlet that must be configured in the user's web.xml. This solution addresses the "JSF Component that Renders Client-side AJAX Code and Processes AJAX Request" stragey presented in the Using JSF and AJAX document.
Read Full Tutorial
|
Rate this Ajax Tutorials
Error connecting to mysql
|
|