reset

on page load

前端 未结 2 1197
清歌不尽
清歌不尽 2021-01-29 04:04

How to reset on page load? Using JSF or onClick event of a CommandButton

Please post here an example either in Javascript or Ajax

Please some one help me for th

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-29 04:49

    If I understood what you want to achieve then it's pretty much simple...

    first set dialog ID

     
    

    then alter your button to this

    
    

    I think that each time you are opening the dialog you are seeing the previous checkboxes selected, in this way you update the dialog before you show it, the update cause the re-rendering.

    But I can't see where you are saving the checkboxes values ! Note: If you have values in checkboxes the answer would be different.....

提交回复
热议问题