I have a problem with the validation of a and updating its content.
Basically when the inputText validation fails, it never gets updated
Arjan tijms answer will works, however the best solutions I found are:
Use Omnifaces Solution So, instead of implementing the listener your self all what you need is just one line of simple code.
If you are using Primefaces you can use resetInput component: