This content has been marked as final.
Show 2 replies
-
1. Re: Calling js function from .xhtml?
boy18nj Dec 29, 2009 11:23 PM (in response to boy18nj)Finally i achieved something.
<a:commandButton id="delete1"
value="Delete1"
action="#{collatRptCatgryHome.remove}"
immediate="true"
rendered="#{collatRptCatgryHome.managed}"
onclick="confirm('Please')">
</a:commandButton>But this code has 1 problem, in the confirmation box, either i click on OK or cancel, it will still proceed to perform the delete operation.
I need, when cancel is clicked, it should not proceed with the delete operation.
-
2. Re: Calling js function from .xhtml?
boy18nj Dec 30, 2009 9:20 PM (in response to boy18nj)finally i got the solution. i will post soon, it will be helpful for others.