> Date: Fri, 15 Feb 2008 19:16:02 +0530
> From: Venkatesh Babu <Venkatesh.M_at_Sun.COM>
> Content-type: text/plain; format=flowed; charset=UTF-8
> Subject: Has this Issue been fixed in Woodstock 4.2?
>
> Hi Stephen,
>
> I am not sure whether the integrations got reflected in the latest build
> that you have downloaded.
> I went to an ubuntu 7.10 box, started firefox and went to the example
> app's menu page. (from the latest workspace which i have
> in my local machine.. webdev2.sun.com seems to be out of date..) I
> resized the firefox window and i was able to find
> that the menu was positioned either above or below of the hyperlink
> depending on the space available in the browser window.
> IF the window was resized so that there was no space below the
> hyperlink, then the menu did show up above the
> hyperlink.
>
> I also had a test case where the same menu was opened in more than one
> place. This too worked fine for me..
>
> Maybe there is something else thats causing the issue? Could you try
> sending the code snippet?
>
> Thanks
> Venky
> Stephan Bardubitzki wrote:
> >
> >> Date: Fri, 25 Jan 2008 09:01:36 -0500
> >> From: Cathy Mucci <Catherine.Mucci_at_Sun.COM>
> >> Content-type: text/plain; format=flowed; charset=us-ascii
> >> Subject: Has this Issue been fixed in Woodstock 4.2?
> >>
> >> A comment was added to the bug on 1/22 indicating that it is being
> >> worked on now. The next release of 4.2 is planned for February 8. We
> >> can talk to our PM to see if we can get it in that promoted build.
> >>
> >> issue: https://woodstock.dev.java.net/issues/show_bug.cgi?id=+975
> >>
> >> build schedule: https://woodstock.dev.java.net/ProjectRoadmap.htm
> >>
> >> Cathy
> >>
> >> Stephan Bardubitzki wrote:
> >> >> Date: Mon, 17 Dec 2007 15:20:52 +0530
> >> >
> >> >> From: Venkatesh Babu <Venkatesh.M_at_Sun.COM <mailto:Venkatesh.M_at_Sun.COM>>
> >> >> Content-type: text/plain; format=flowed; charset=ISO-8859-1
> >> >
> >> >> Subject: Popup Menu Positioning Problem again
> >> >
> >> >> We recently discovered a problem wherein the menu's position was getting
> >> >> cached
> >> >> once you open it at a particular location. A P2 bug has been filed
> >> >
> >> >> against it. (Issue 975)
> >> >> Once you open a menu at a particular location, the menu always opens at
> >> >> the same location every
> >> >> subsequent time you open it.
> >> >> Maybe the problem you are seeing is a manifestation of this?
> >> >
> >> >
> >> > My problem with the menu component still persist with Woodstock 4.2. I'm wondering whether there was a fix, otherwise my code might be the problem.
> >> >
> >> > Thanks,
> >> >
> >> > Stephan
> >> >
> >> >
> >> >
> >>
> >>
> >> --
> >> Cathy Mucci
> >> QE, Projects Woodstock and Lockhart
> >> Developer, Tools, & Services Organization
> >> Sun Microsystems, Inc.
> >> 781-442-3521
> >>
> >>
> >>
> >>
> >
> > It seems like this bug didn't got fixed in Woodstock 4.2 Build 2.
> >
> > Stephan
>
>
>
Hi Venky,
the menu's I use are on each page of a web app and the earlier described problem still persist.
Here is a snippet from the generated JSP:
<h:panelGrid binding="#{Index.gridPanel13}" border="0" id="gridPanel13"
style="height: 100%; text-align: center; vertical-align: middle; width: 100%" styleClass="menu">
<webuijsf:hyperlink actionExpression="#{Index.hyperlink1_action}" binding="#{Index.hyperlink1}"
id="hyperlink1" onMouseOver="setMenuVisibleFalse('popup1', 'popup2', 'popup3', 'popup4');return false;"
style="color: #ffffcc; text-decoration: none" text="#{msgs.navigation_home}" url="/faces/Index.jsp"/>
</h:panelGrid>
<h:panelGrid binding="#{Index.gridPanel14}" border="0" id="gridPanel14" style="width: 100%; height: 100%;"/>
<h:panelGrid binding="#{Index.gridPanel15}" border="0" id="gridPanel15"
style="height: 100%; text-align: center; vertical-align: middle; width: 100%" styleClass="menu">
<webuijsf:staticText binding="#{Index.staticText2}" id="staticText2"
onClick="displayMenuOne(event); return false;" onMouseOver="displayMenuOne(event); return false;"
style="color: #ffffcc" text="#{msgs.navigation_solutions}"/>
</h:panelGrid>
<h:panelGrid binding="#{Index.gridPanel16}" border="0" id="gridPanel16" style="width: 100%; height: 100%;"/>
<h:panelGrid binding="#{Index.gridPanel17}" border="0" id="gridPanel17"
style="height: 100%; text-align: center; vertical-align: middle; width: 100%" styleClass="menu">
<webuijsf:staticText binding="#{Index.staticText3}" id="staticText3"
onClick="displayMenuTwo(event); return false;" onMouseOver="displayMenuTwo(event); return false;"
style="color: #ffffcc" text="#{msgs.navigation_software}"/>
</h:panelGrid>
<h:panelGrid binding="#{Index.gridPanel18}" border="0" id="gridPanel18" style="width: 100%; height: 100%;"/>
<h:panelGrid binding="#{Index.gridPanel19}" border="0" id="gridPanel19"
style="height: 100%; text-align: center; vertical-align: middle; width: 100%" styleClass="menu">
<webuijsf:staticText binding="#{Index.staticText4}" id="staticText4"
onClick="displayMenuThree(event); return false;" onMouseOver="displayMenuThree(event); return false;"
style="color: #ffffcc" text="#{msgs.navigation_services}"/>
</h:panelGrid>
<h:panelGrid binding="#{Index.gridPanel20}" border="0" id="gridPanel20" style="width: 100%; height: 100%;"/>
<h:panelGrid binding="#{Index.gridPanel21}" border="0" id="gridPanel21"
style="height: 100%; text-align: center; vertical-align: middle; width: 100%" styleClass="menu">
<webuijsf:staticText binding="#{Index.staticText5}" id="staticText5"
onClick="displayMenuFour(event); return false;" onMouseOver="displayMenuFour(event); return false;"
style="color: #ffffcc" text="#{msgs.navigation_company}"/>
</h:panelGrid>
and here is the javascript:
/**
* Display the first popup menu
*/
function displayMenuOne(event) {
document.getElementById("form1:popup1").open(event);
}
/**
* Display the second popup menu
*/
function displayMenuTwo(event) {
document.getElementById("form1:popup2").open(event);
}
/**
* Display the third popup menu
*/
function displayMenuThree(event) {
document.getElementById("form1:popup3").open(event);
}
/**
* Display the forth popup menu
*/
function displayMenuFour(event) {
document.getElementById("form1:popup4").open(event);
}
/**
* Set Visisble false for popup menu
*/
function setMenuVisibleFalse(menu1, menu2, menu3, menu4) {
if ( document.getElementById("form1:" + menu1).getProps().visible ) {
document.getElementById("form1:" + menu1).setProps({visible: false});
}
else if ( document.getElementById("form1:" + menu2).getProps().visible ) {
document.getElementById("form1:" + menu2).setProps({visible: false});
}
else if ( document.getElementById("form1:" + menu3).getProps().visible ) {
document.getElementById("form1:" + menu3).setProps({visible: false});
}
else if ( document.getElementById("form1:" + menu4).getProps().visible ) {
document.getElementById("form1:" + menu4).setProps({visible: false});
}
return false;
}
Attached are two snapshot.
Thanks
Stephan