How to display a confirmation dialog(Primefaces) from backing bean

前端 未结 4 1659
名媛妹妹
名媛妹妹 2021-01-12 12:04

I have an import function which will parse the XML file which contains the version information of the document and save it in database. If user try to upload the already exi

4条回答
  •  长情又很酷
    2021-01-12 12:39

    I faced very similar question. The solution I came up with was to split the logic into 2 - first, when the button is pressed use 'action' to prepare the data for the validation and use 'oncomplete' to run a remote command which displays the confirmation dialog in which 'OK' is the real action.

提交回复
热议问题