Doesnt the YUI and dojo contrib do this already?

gurgel2 wrote:
I want to do a popup menu (using a z-indexed layer) that should closed if i
click anywhere, EXCEPT on the menu itself.

Its the close "behavior" I need to know. Everything but that, is clear to
me.  A similar behavior to a opened desktop app "File,Edit, .. Help"  menu
or a context menu (not opened with right button ofcourse).
Maybe something like...

final MyMenu myMenu = ... getPage().add(new AjaxEventBehavior("onclick") { void onEvent(AjaxRequestTarget target) { myMenu.setVisibible(false); target.addComponent(myMenu); } });


...but than then I have to deal with the "exclusion" of click events on my
menu popup layer. Any better ideas?

/Kalle

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to