I have seen a lot of answers talking about the use of <p:resetInput>
and <p:ajax resetValues="true">
works in the same way.
In this case Why does my form isn't reseting his styling after render? just the <p:ajax>
component worked for me.
I have read this posts but they always are treated as the same:
I still can't understand the difference between this two if anyone have some documentation about it I would be really grateful.
p:resetInput
was basically introduced in PrimeFaces-Extensions long time before resetValues
on f:ajax/p:ajax
existed.
Also resetValues is only available for JSF 2.2+ users, while p:resetInput
even works on JSF 2.0.