how i create popup menu when button onclick

how i create popup menu when button onclick
[50 byte] By [78uihj] at [2007-11-26 8:44:06]
# 1

You try adding a scrip tag in your jsp code, and calling the function in the onclick attribute.

Example:

<script><![CDATA[

function confirmDelete(){

if(confirm("Are you sure you want to delete selected user")){

return true;

} else{

return false;

}

}

]]></script>

<ui:button action="#{View.delete_action}" binding="#{View.delete}" id="delete" onclick="confirmDelete"/>

Cheers

Daniel

null

danielmundra at 2007-7-6 22:26:07 > top of Java-index,Development Tools,Java Tools...
# 2
Hi!Try to look here: http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=98612I hope it will be helpful for you.Thanks,Roman.
Grif at 2007-7-6 22:26:07 > top of Java-index,Development Tools,Java Tools...