How to send the currently iterated item to h:selectBooleanCheckbox with f:ajax event=change

前端 未结 2 1466
一生所求
一生所求 2021-01-24 09:19

I\'ve the below form:


    
        
            

        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 09:43

    For selectBooleanCheckbox it only reacts on the event click and the form should be posted.

    so add this to the checkbox

    valueChangeListener="#{mybean.myfunction}" onchange="submit();"

    it should get fired !

提交回复
热议问题