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
You are facing in typical Primefaces Problem.
When your page is displayed and buttonBean.showConfirm = false, this element is not rendered. This means, it will not appear in the DOM-Tree. No matter what you do afterwards, a non existing element cannot be shown or hidden.
There are actually two ways to solve you problem.