[richfaces-svn-commits] JBoss Rich Faces SVN: r4549 - in branches/3.1.x/samples/richfaces-demo/src/main: webapp/richfaces/contextMenu and 1 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Dec 6 08:08:53 EST 2007
Author: ilya_shaikovsky
Date: 2007-12-06 08:08:53 -0500 (Thu, 06 Dec 2007)
New Revision: 4549
Modified:
branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
Log:
Context menu and Component Control Finished.
Modified: branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-12-06 12:44:38 UTC (rev 4548)
+++ branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-12-06 13:08:53 UTC (rev 4549)
@@ -68,5 +68,5 @@
page= ajaxMisc, Ajax Page, /images/ico_common.gif, /images/cn_AjaxPage.gif, RichFacesComponentsLibrary.html#page, jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html, /richfaces/page.jsf
portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/portlet.jsf
effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, RichFacesComponentsLibrary.html#effect, jbossrichfaces/freezone/docs/tlddoc/rich/effect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIEffect.html, /richfaces/effect.jsf
-contextMenu= richMenu, Context Menu, /images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif, RichFacesComponentsLibrary.html\#contextMenu, jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html, /richfaces/contextMenu.jsf
-componentControl= richMisc, Component Control, /images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif, RichFacesComponentsLibrary.html\#componentControl, jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html, /richfaces/componentControl.jsf
\ No newline at end of file
+contextMenu= richMenu, Context Menu, /images/ico_dropDownMenu.gif, /images/cn_contextMenu.gif, RichFacesComponentsLibrary.html\#contextMenu, jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html, /richfaces/contextMenu.jsf
+componentControl=richMisc, Component Control, /images/ico_common.gif, /images/cn_componentControl.gif, RichFacesComponentsLibrary.html\#componentControl, jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html, /richfaces/componentControl.jsf
\ No newline at end of file
Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml 2007-12-06 12:44:38 UTC (rev 4548)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml 2007-12-06 13:08:53 UTC (rev 4549)
@@ -11,9 +11,9 @@
</style>
<h:panelGrid columns="1" columnClasses="cent,cent,cent,cent" cellspacing="10px">
- <h:outputText value="Perform right-click on the picture to call the menu" style="font-weight:bold"></h:outputText>
+ <h:outputText value="Perform right-click on the picture to call the menu" style="font-weight:bold" id="label"/>
- <h:panelGroup>
+ <h:panelGroup id="picture">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"/>
<rich:contextMenu event="oncontextmenu" attached="true">
<rich:menuItem value="Enlarge"></rich:menuItem>
Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml 2007-12-06 12:44:38 UTC (rev 4548)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml 2007-12-06 13:08:53 UTC (rev 4549)
@@ -13,6 +13,9 @@
<p>RichFaces Context menu is a component that allows to organize the hierarchical cointext menus
similar to one that almost every desktop application has.
</p>
+ <p>Context Menu can contains a set of Menu Items, Menu Groups and Menu Separators.
+ Usage of these components are similar to usage in RichFaces Drop Down Menu.
+ </p>
<p><b>Example:</b>To call the menu - perform the right click on the picture</p>
<div class="sample-container">
@@ -22,8 +25,13 @@
</ui:include>
</div>
- <p>Context Menu can contains a set of Menu Items, Menu Groups and Menu Separators.
- Usage of these components are similar to usage in RichFaces Drop Down Menu.
+ <p>
+ In this example menu just defined as nested to <b>panelGroup</b> with "picture" Id.
+ You should be carefull with such definitions, because on the client - menu component
+ searches for the DOM element with the client Id of the parent component on the server.
+ If the component doesn't encodes id on the client - it will be not found by the menu and menu
+ will be attached to its closest parent in DOM tree. For example you should not define the menu as a child
+ for images components.
</p>
<p>Context menu itself is an invisible panel
that appears after a particular client side event (onmouseover, onclick etc) occured on parent component.
More information about the richfaces-svn-commits
mailing list