Author: ayanul
Date: 2008-04-29 10:49:15 -0400 (Tue, 29 Apr 2008)
New Revision: 8327
Modified:
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
Log:
http://jira.jboss.com/jira/browse/RF-1653
Modified: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-04-29
14:41:17 UTC (rev 8326)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-04-29
14:49:15 UTC (rev 8327)
@@ -14,7 +14,7 @@
<f:param name="cmdParam" value="abc" />
</rich:menuItem>
<rich:menuItem onbeforedomupdate="#{event.onbeforedomupdate}"
onclick="#{event.onclick}" oncomplete="#{event.oncomplete}"
onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}"
onselect="#{event.onselect}"><h:outputText value="event
item"/></rich:menuItem>
- <rich:menuItem icon="/pics/header.png" value="JSAPI Hide"
onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.doHide()"
reRender="cmInfoID">
+ <rich:menuItem icon="/pics/header.png" value="JSAPI Hide
onmousemove"
onmousemove="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.hide()"
reRender="cmInfoID">
<f:param name="cmdParam" value="hide" />
</rich:menuItem>
<rich:menuSeparator />
@@ -45,13 +45,14 @@
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
- <a4j:commandLink
onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.doShow()"
value="JSAPI Show"></a4j:commandLink>
+
</rich:panel>
-
-
- <rich:panel style="width: 130px; height: 50px; background-color:
#98FB98;">
- <h:outputText value="panel with contextMenu(Test)" />
- <rich:contextMenu id="contextMenuID"
attached="#{contextMenu.attached}"
submitMode="#{contextMenu.submitMode}"
+
+ <rich:panel id="cmPanelID" style="width: 130px; height: 50px;
background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(attachTo)" />
+ </rich:panel>
+
+ <rich:contextMenu attachTo="cmPanelID" id="contextMenuID"
attached="#{contextMenu.attached}"
submitMode="#{contextMenu.submitMode}"
event="#{contextMenu.event}"
disableDefaultMenu="#{contextMenu.disableDefaultMenu}"
rendered="#{contextMenu.rendered}"
hideDelay="#{contextMenu.hideDelay}"
showDelay="#{contextMenu.showDelay}"
popupWidth="#{contextMenu.popupWidth}">
<rich:menuItem icon="/pics/header.png" value="abc"
reRender="cmInfoID">
@@ -103,7 +104,7 @@
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
- </rich:panel>
+ <a4j:commandLink
onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.show(event,'context')"
value="JSAPI Show"></a4j:commandLink>
</h:panelGrid>
<a4j:commandButton value="reRender"
reRender="cmInfoID"></a4j:commandButton>