Primefaces onclick and onsuccess differences

后端 未结 3 618
北荒
北荒 2020-12-08 11:14

I have the following situation:

after clicking a button, some business logic is done and after it is done, a new tab with a report should be visible.



        
3条回答
  •  情歌与酒
    2020-12-08 12:00

    I have noticed that onsuccess for PrimeFaces command button does not work. The oncomplete however works and does the needful even if there is an error , such as in my case shows a success dialog even if there is an error in my business logic. Tried to use onsuccess but doesn't work. You could try oncomplete as below:

    
    

提交回复
热议问题