This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using the latest JSF Tomahawk library and Ajax4JSF components in my application. My application have several forms and each form contains a large number of fields. Each field is also having validations for the values contained in it. These validations are server side validation, requiring me to validate the value entered by the user on Tab out/onblur of the input component. We have used a4j:rejion and a4jSupport tags in our application to submit and re-render relevant part of the form fields.
On the forms, I have set in the tabindex for all the fields. when a user is on a particular field and enters some value and moves on to other field, an ajax request for validation is sent to the server and the server returns the response with the validation results. When the reponse is return to the page, the TabIndex gets lost in the process and it goes to any other point.