users@woodstock.java.net

PopupMenu and Mouse Events

From: Stephan Bardubitzki <bardu55_at_gmail.com>
Date: Thu, 22 Nov 2007 21:32:25 -0800

Hi,

I have a static text and when the mouse moves over a menu pops up. This
works fine.
[code]
<webuijsf:staticText binding="#{Index.staticText2}" id="staticText2"

onMouseOver="displayMenuOne(event); return false;"
                                                        style="color:
#ffffcc" text="#{msgs.navigation_solutions}"/>
[/code]

Now, I want when the mouse moves out of the popup menu that it disappears.
But it appears that as soon as the mouse moves over the popup menu this
effect already happens. Is this intended behavior or maybe a bug?

[code]
<webuijsf:menu eventExpression="#{SessionBean1.selectedAction}"
eventListenerExpression="#{SessionBean1.menuSelection}" id="popup1"
                            items="#{SessionBean1.optionItems1}"
onMouseOut="document.getElementById(&quot;form1:popup1&quot;).setProps({visible:
false});" submitForm="true"/>
[/code]

Stephan