How to find indication of a Validation error (required=“true”) while doing ajax command

前端 未结 4 1612
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 22:45

I have a form inside a dialog which I close by clicking on commandbutton with ajax ,

like this



        
4条回答
  •  粉色の甜心
    2020-11-29 23:01

    @BalusC

    in your example code the clientId of the button is not set as a param because it is a AJAX request. So

    not empty param[add.clientId] is always false.
    

    But this works:

    param['javax.faces.source'] eq add.clientId
    

    (tested with jsf-impl-2.2.12.redhat-1)

    regards

提交回复
热议问题