1

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.

1 Answers1

4

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.

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
tandraschko
  • 2,291
  • 13
  • 13
  • thanks for that info. I imagine between this commands there must be some improvements. Do you know wich one is the difference under covers between using `` and ``? – Juan Enrique Riquelme Aug 30 '19 at 12:23