0 Replies Latest reply on Sep 15, 2011 8:19 AM by Pavel Zelenka

    Conditioned confirmation dialog

    Pavel Zelenka Newbie

      Hi,

       

      I know how to display confirmation dialog:

       

      {code}<a4j:commandButton value="Import" action="#{IndexBean.importHubbuch}" reRender="table" onclick="if (!confirm('message')) return false"/>{code}

       

      But I'd like this confimation dialog to be dependent on backing bean method return value. For example if backing bean method returns true confirmation dialog should apper.

       

      Can anybody help?

       

      Thanks