Primefaces JSF update after validation failed doesn't work

前端 未结 3 1190
小蘑菇
小蘑菇 2021-02-12 20:42

I have a problem with the validation of a and updating its content.

Basically when the inputText validation fails, it never gets updated

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 21:08

    Arjan tijms answer will works, however the best solutions I found are:

    1. Use Omnifaces Solution So, instead of implementing the listener your self all what you need is just one line of simple code.

      
      
      
      
      
    2. If you are using Primefaces you can use resetInput component:

      
      
        
      

提交回复
热议问题