Is there any easier way to set to process only those input fields within a h:form whose values have actually been changed at the client side ignoring those that havent changed?
Using JSF 2.2 with
Primefaces 3.2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not in JSF 2.2, nor in PrimeFaces 3.2.
Closest what you can get is PrimeFaces 3.3 (currently only available as snapshot) with new client ID selector syntax which is borrowed from the jQuery selector API. Unfortunately, this doesn’t support some
:changedselector (even already not in jQuery selector API).This is not exactly trivial to implement and integrate in PrimeFaces JS API. You basically need to hook a
changelistener on every single input element in the background wherein you collect client IDs of those who have been changed.