I am using PrimeFaces <p:ajax> tag in my code. How we can exclude a child component from getting updated in an ajax call that update a parent component?
I am using PrimeFaces <p:ajax> tag in my code. How we can exclude a
Share
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.
If you’re using at least PrimeFaces 3.3, then you can use PrimeFaces Selectors for this. This allows you using jQuery CSS selector syntax in
processandupdateattributes of PrimeFaces ajax components.For example:
This example will update the entire form except for inputs having
class="noupdate"in the client side.If you want to update a all children of a certain component except one, replace ‘form’ by the id of the surrounding component (or a class or…)
Just make sure you use the full client-side id.
See also: