Author: lfryc(a)redhat.com
Date: 2011-01-11 06:34:56 -0500 (Tue, 11 Jan 2011)
New Revision: 20942
Added:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelMenuBean.properties
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java
Log:
rich:panelMenu - simple sample - attribute consolidation (RFPL-1045)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java 2011-01-11
11:34:09 UTC (rev 20941)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java 2011-01-11
11:34:56 UTC (rev 20942)
@@ -27,7 +27,7 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
-import org.richfaces.component.UIPanelMenu;
+import org.richfaces.component.html.HtmlPanelMenu;
import org.richfaces.event.ItemChangeEvent;
import org.richfaces.tests.metamer.Attributes;
import org.slf4j.Logger;
@@ -35,7 +35,7 @@
/**
* Managed bean for rich:panelMenu.
- *
+ *
* @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
* @version $Revision$
*/
@@ -55,21 +55,15 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getComponentAttributesFromFacesConfig(UIPanelMenu.class,
getClass());
+ // loading from Class to work around RF-10161
+ attributes = Attributes.getComponentAttributesFromClass(HtmlPanelMenu.class,
getClass());
- attributes.setAttribute("groupCollapseIconLeft", "disc");
- attributes.setAttribute("groupCollapseIconRight",
"chevronDown");
- attributes.setAttribute("groupExpandIconLeft", "disc");
- attributes.setAttribute("groupExpandIconRight",
"chevronUp");
attributes.setAttribute("rendered", true);
attributes.setAttribute("style", "width: 200px;");
- attributes.setAttribute("topGroupCollapseIconLeft", "disc");
- attributes.setAttribute("topGroupCollapseIconRight",
"chevronDown");
- attributes.setAttribute("topGroupExpandIconLeft", "disc");
- attributes.setAttribute("topGroupExpandIconRight",
"chevronUp");
- // will tested in another way
+ // will be tested in another way
attributes.remove("itemChangeListener");
+ attributes.remove("converter");
}
public Attributes getAttributes() {
@@ -82,7 +76,7 @@
/**
* An item change listener that logs to the page old and new value.
- *
+ *
* @param event
* an event representing the activation of a user interface component
*/
Added:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelMenuBean.properties
===================================================================
---
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelMenuBean.properties
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichPanelMenuBean.properties 2011-01-11
11:34:56 UTC (rev 20942)
@@ -0,0 +1,188 @@
+attr.groupMode.client=client
+attr.groupMode.ajax=ajax
+attr.groupMode.server=server
+attr.groupMode.null=
+attr.itemMode.client=client
+attr.itemMode.ajax=ajax
+attr.itemMode.server=server
+attr.itemMode.null=
+attr.groupCollapseIconLeft.grid=grid
+attr.groupCollapseIconLeft.disc=disc
+attr.groupCollapseIconLeft.chevronUp=chevronUp
+attr.groupCollapseIconLeft.chevronDown=chevronDown
+attr.groupCollapseIconLeft.triangle=triangle
+attr.groupCollapseIconLeft.triangleUp=triangleUp
+attr.groupCollapseIconLeft.triangleDown=triangleDown
+attr.groupCollapseIconLeft.customURL=/resources/images/loading.gif
+attr.groupCollapseIconLeft.null=
+attr.groupCollapseIconRight.grid=grid
+attr.groupCollapseIconRight.disc=disc
+attr.groupCollapseIconRight.chevronUp=chevronUp
+attr.groupCollapseIconRight.chevronDown=chevronDown
+attr.groupCollapseIconRight.triangle=triangle
+attr.groupCollapseIconRight.triangleUp=triangleUp
+attr.groupCollapseIconRight.triangleDown=triangleDown
+attr.groupCollapseIconRight.customURL=/resources/images/loading.gif
+attr.groupCollapseIconRight.null=
+attr.groupDisableIconLeft.grid=grid
+attr.groupDisableIconLeft.disc=disc
+attr.groupDisableIconLeft.chevronUp=chevronUp
+attr.groupDisableIconLeft.chevronDown=chevronDown
+attr.groupDisableIconLeft.triangle=triangle
+attr.groupDisableIconLeft.triangleUp=triangleUp
+attr.groupDisableIconLeft.triangleDown=triangleDown
+attr.groupDisableIconLeft.customURL=/resources/images/loading.gif
+attr.groupDisableIconLeft.null=
+attr.groupDisableIconRight.grid=grid
+attr.groupDisableIconRight.disc=disc
+attr.groupDisableIconRight.chevronUp=chevronUp
+attr.groupDisableIconRight.chevronDown=chevronDown
+attr.groupDisableIconRight.triangle=triangle
+attr.groupDisableIconRight.triangleUp=triangleUp
+attr.groupDisableIconRight.triangleDown=triangleDown
+attr.groupDisableIconRight.customURL=/resources/images/loading.gif
+attr.groupDisableIconRight.null=
+attr.groupExpandIconLeft.grid=grid
+attr.groupExpandIconLeft.disc=disc
+attr.groupExpandIconLeft.chevronUp=chevronUp
+attr.groupExpandIconLeft.chevronDown=chevronDown
+attr.groupExpandIconLeft.triangle=triangle
+attr.groupExpandIconLeft.triangleUp=triangleUp
+attr.groupExpandIconLeft.triangleDown=triangleDown
+attr.groupExpandIconLeft.customURL=/resources/images/loading.gif
+attr.groupExpandIconLeft.null=
+attr.groupExpandIconRight.grid=grid
+attr.groupExpandIconRight.disc=disc
+attr.groupExpandIconRight.chevronUp=chevronUp
+attr.groupExpandIconRight.chevronDown=chevronDown
+attr.groupExpandIconRight.triangle=triangle
+attr.groupExpandIconRight.triangleUp=triangleUp
+attr.groupExpandIconRight.triangleDown=triangleDown
+attr.groupExpandIconRight.customURL=/resources/images/loading.gif
+attr.groupExpandIconRight.null=
+attr.itemDisableIconLeft.grid=grid
+attr.itemDisableIconLeft.disc=disc
+attr.itemDisableIconLeft.chevronUp=chevronUp
+attr.itemDisableIconLeft.chevronDown=chevronDown
+attr.itemDisableIconLeft.triangle=triangle
+attr.itemDisableIconLeft.triangleUp=triangleUp
+attr.itemDisableIconLeft.triangleDown=triangleDown
+attr.itemDisableIconLeft.customURL=/resources/images/loading.gif
+attr.itemDisableIconLeft.null=
+attr.itemDisableIconRight.grid=grid
+attr.itemDisableIconRight.disc=disc
+attr.itemDisableIconRight.chevronUp=chevronUp
+attr.itemDisableIconRight.chevronDown=chevronDown
+attr.itemDisableIconRight.triangle=triangle
+attr.itemDisableIconRight.triangleUp=triangleUp
+attr.itemDisableIconRight.triangleDown=triangleDown
+attr.itemDisableIconRight.customURL=/resources/images/loading.gif
+attr.itemDisableIconRight.null=
+attr.itemIconLeft.grid=grid
+attr.itemIconLeft.disc=disc
+attr.itemIconLeft.chevronUp=chevronUp
+attr.itemIconLeft.chevronDown=chevronDown
+attr.itemIconLeft.triangle=triangle
+attr.itemIconLeft.triangleUp=triangleUp
+attr.itemIconLeft.triangleDown=triangleDown
+attr.itemIconLeft.customURL=/resources/images/loading.gif
+attr.itemIconLeft.null=
+attr.itemIconRight.grid=grid
+attr.itemIconRight.disc=disc
+attr.itemIconRight.chevronUp=chevronUp
+attr.itemIconRight.chevronDown=chevronDown
+attr.itemIconRight.triangle=triangle
+attr.itemIconRight.triangleUp=triangleUp
+attr.itemIconRight.triangleDown=triangleDown
+attr.itemIconRight.customURL=/resources/images/loading.gif
+attr.itemIconRight.null=
+attr.topGroupCollapseIconLeft.grid=grid
+attr.topGroupCollapseIconLeft.disc=disc
+attr.topGroupCollapseIconLeft.chevronUp=chevronUp
+attr.topGroupCollapseIconLeft.chevronDown=chevronDown
+attr.topGroupCollapseIconLeft.triangle=triangle
+attr.topGroupCollapseIconLeft.triangleUp=triangleUp
+attr.topGroupCollapseIconLeft.triangleDown=triangleDown
+attr.topGroupCollapseIconLeft.customURL=/resources/images/loading.gif
+attr.topGroupCollapseIconLeft.null=
+attr.topGroupCollapseIconRight.grid=grid
+attr.topGroupCollapseIconRight.disc=disc
+attr.topGroupCollapseIconRight.chevronUp=chevronUp
+attr.topGroupCollapseIconRight.chevronDown=chevronDown
+attr.topGroupCollapseIconRight.triangle=triangle
+attr.topGroupCollapseIconRight.triangleUp=triangleUp
+attr.topGroupCollapseIconRight.triangleDown=triangleDown
+attr.topGroupCollapseIconRight.customURL=/resources/images/loading.gif
+attr.topGroupCollapseIconRight.null=
+attr.topGroupDisableIconLeft.grid=grid
+attr.topGroupDisableIconLeft.disc=disc
+attr.topGroupDisableIconLeft.chevronUp=chevronUp
+attr.topGroupDisableIconLeft.chevronDown=chevronDown
+attr.topGroupDisableIconLeft.triangle=triangle
+attr.topGroupDisableIconLeft.triangleUp=triangleUp
+attr.topGroupDisableIconLeft.triangleDown=triangleDown
+attr.topGroupDisableIconLeft.customURL=/resources/images/loading.gif
+attr.topGroupDisableIconLeft.null=
+attr.topGroupDisableIconRight.grid=grid
+attr.topGroupDisableIconRight.disc=disc
+attr.topGroupDisableIconRight.chevronUp=chevronUp
+attr.topGroupDisableIconRight.chevronDown=chevronDown
+attr.topGroupDisableIconRight.triangle=triangle
+attr.topGroupDisableIconRight.triangleUp=triangleUp
+attr.topGroupDisableIconRight.triangleDown=triangleDown
+attr.topGroupDisableIconRight.customURL=/resources/images/loading.gif
+attr.topGroupDisableIconRight.null=
+attr.topGroupExpandIconLeft.grid=grid
+attr.topGroupExpandIconLeft.disc=disc
+attr.topGroupExpandIconLeft.chevronUp=chevronUp
+attr.topGroupExpandIconLeft.chevronDown=chevronDown
+attr.topGroupExpandIconLeft.triangle=triangle
+attr.topGroupExpandIconLeft.triangleUp=triangleUp
+attr.topGroupExpandIconLeft.triangleDown=triangleDown
+attr.topGroupExpandIconLeft.customURL=/resources/images/loading.gif
+attr.topGroupExpandIconLeft.null=
+attr.topGroupExpandIconRight.grid=grid
+attr.topGroupExpandIconRight.disc=disc
+attr.topGroupExpandIconRight.chevronUp=chevronUp
+attr.topGroupExpandIconRight.chevronDown=chevronDown
+attr.topGroupExpandIconRight.triangle=triangle
+attr.topGroupExpandIconRight.triangleUp=triangleUp
+attr.topGroupExpandIconRight.triangleDown=triangleDown
+attr.topGroupExpandIconRight.customURL=/resources/images/loading.gif
+attr.topGroupExpandIconRight.null=
+attr.topItemDisableIconLeft.grid=grid
+attr.topItemDisableIconLeft.disc=disc
+attr.topItemDisableIconLeft.chevronUp=chevronUp
+attr.topItemDisableIconLeft.chevronDown=chevronDown
+attr.topItemDisableIconLeft.triangle=triangle
+attr.topItemDisableIconLeft.triangleUp=triangleUp
+attr.topItemDisableIconLeft.triangleDown=triangleDown
+attr.topItemDisableIconLeft.customURL=/resources/images/loading.gif
+attr.topItemDisableIconLeft.null=
+attr.topItemDisableIconRight.grid=grid
+attr.topItemDisableIconRight.disc=disc
+attr.topItemDisableIconRight.chevronUp=chevronUp
+attr.topItemDisableIconRight.chevronDown=chevronDown
+attr.topItemDisableIconRight.triangle=triangle
+attr.topItemDisableIconRight.triangleUp=triangleUp
+attr.topItemDisableIconRight.triangleDown=triangleDown
+attr.topItemDisableIconRight.customURL=/resources/images/loading.gif
+attr.topItemDisableIconRight.null=
+attr.topItemIconLeft.grid=grid
+attr.topItemIconLeft.disc=disc
+attr.topItemIconLeft.chevronUp=chevronUp
+attr.topItemIconLeft.chevronDown=chevronDown
+attr.topItemIconLeft.triangle=triangle
+attr.topItemIconLeft.triangleUp=triangleUp
+attr.topItemIconLeft.triangleDown=triangleDown
+attr.topItemIconLeft.customURL=/resources/images/loading.gif
+attr.topItemIconLeft.null=
+attr.topItemIconRight.grid=grid
+attr.topItemIconRight.disc=disc
+attr.topItemIconRight.chevronUp=chevronUp
+attr.topItemIconRight.chevronDown=chevronDown
+attr.topItemIconRight.triangle=triangle
+attr.topItemIconRight.triangleUp=triangleUp
+attr.topItemIconRight.triangleDown=triangleDown
+attr.topItemIconRight.customURL=/resources/images/loading.gif
+attr.topItemIconRight.null=
\ No newline at end of file