Hello,
Please use the confirmation facet in link.
Examples in:
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/demo/src/main/webapp/reference/command.jsp
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/addressbook/src/main/webapp/application/list.jsp
Documentation of link:
http://myfaces.apache.org/tobago/tobago-core/tlddoc-1.0.11/tc/link.html
Regards
Bernd
Ramarao Venkata wrote:
Hai,
I has a link and before doing the action i need to take confirmation. I has
written the code as below
<tc:link actionListener="#{mycontoller.deleteItem}"
onclick="confirm('Are you sure to delete this Item');"
markup="underline">
<f:param name="id" value="#{mycontoller.id}" />
<tc:out value="#{bundle.delete}" id="del_it" />
</tc:link>
the confirm dialog is displayed but the actionListener is not been invoked.
Could any one help me.
regards
ramarao