PrimeFaces: conditional update on validation

后端 未结 2 996
轮回少年
轮回少年 2021-01-22 06:49

Is it possible to conditionally update JSF components only when validation succeeds?

I would like to be able to do something like



        
2条回答
  •  甜味超标
    2021-01-22 07:30

    I don't think the message suggestion necessarily answers the question asked. Suppose he wants to update something OTHER than a message?

    I've not tried this myself, but another approach that might work is to use remotecommand.

      
      
      
    

    Note, this would necessitate another round-trip to the server and thus performance is a consideration.

提交回复
热议问题