[jboss-user] [JBoss Seam] - Re: Question: how to make confirmation box work with h:comma
anescu
do-not-reply at jboss.com
Tue Jun 19 03:24:57 EDT 2007
Hi,
Mea culpa...
The solution in the Wiki does work after all. I deleted the action by mistake. But the solution you proposed doesn't work, the code in the onclick attribute is placed first in the JS generated code, so if you do something like
onclick="return confirm('Question...');"
the rest of ther script will never fire.
So this solution works after all:
onclick="if (!confirm('Are you sure you want to delete this record?')) return false;"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055476#4055476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055476
More information about the jboss-user
mailing list