Author: lfryc(a)redhat.com
Date: 2011-01-26 14:24:03 -0500 (Wed, 26 Jan 2011)
New Revision: 21246
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuGroupBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuItem/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/resources/css/richDragBehavior.css
Log:
rich:panelMenu - pre-automation activities (RFPL-950)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuGroupBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuGroupBean.java 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuGroupBean.java 2011-01-26
19:24:03 UTC (rev 21246)
@@ -57,11 +57,15 @@
attributes =
Attributes.getComponentAttributesFromFacesConfig(UIPanelMenuGroup.class, getClass());
attributes.setAttribute("rendered", true);
+ attributes.setAttribute("selectable", true);
+ attributes.setAttribute("mode", "ajax");
// already defined in source directly
attributes.remove("name");
attributes.remove("label");
attributes.remove("changeExpandListener");
+ attributes.remove("action");
+ attributes.remove("actionListener");
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java 2011-01-26
19:24:03 UTC (rev 21246)
@@ -59,14 +59,10 @@
attributes.setAttribute("rendered", true);
// already defined in source directly
+ attributes.remove("action");
+ attributes.remove("actionListener");
attributes.remove("name");
attributes.remove("label");
-
- // attributes should be hidden
- attributes.remove("panelMenu");
- attributes.remove("parentItem");
- attributes.remove("topItem");
- attributes.remove("value");
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/list.xhtml 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/list.xhtml 2011-01-26
19:24:03 UTC (rev 21246)
@@ -32,7 +32,7 @@
<ui:define name="links">
<metamer:testPageLink id="simple" outcome="simple"
value="Simple">
- Simple page containing <b>rich:panelMenuGroup</b> inside
<b>rich:panelMenu</b> and input boxes for all its attributes.
+ Simple page containing <b>rich:panelMenuGroup</b> inside
<b>rich:panelMenu</b> and input boxes for all its attributes. The @selectable
attribute is true by default since it is necessary for testing attributes like @immediate,
@bypassUpdates, @action and @actionListener.
</metamer:testPageLink>
</ui:define>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/simple.xhtml 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuGroup/simple.xhtml 2011-01-26
19:24:03 UTC (rev 21246)
@@ -97,6 +97,7 @@
onunselect="#{richPanelMenuGroupBean.attributes['onunselect'].value}"
render="#{richPanelMenuGroupBean.attributes['render'].value}"
rendered="#{richPanelMenuGroupBean.attributes['rendered'].value}"
+
selectable="#{richPanelMenuGroupBean.attributes['selectable'].value}"
status="#{richPanelMenuGroupBean.attributes['status'].value}"
style="#{richPanelMenuGroupBean.attributes['style'].value}"
styleClass="#{richPanelMenuGroupBean.attributes['styleClass'].value}"
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuItem/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuItem/simple.xhtml 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenuItem/simple.xhtml 2011-01-26
19:24:03 UTC (rev 21246)
@@ -55,7 +55,7 @@
data="#{richPanelMenuItemBean.attributes['data'].value}"
disabled="#{richPanelMenuItemBean.attributes['disabled'].value}"
disabledClass="#{richPanelMenuItemBean.attributes['disabledClass'].value}"
-
execute="#{richPanelMenuItemBean.attributes['disabledClass'].value}"
+
execute="#{richPanelMenuItemBean.attributes['execute'].value}"
hoverClass="#{richPanelMenuItemBean.attributes['hoverClass'].value}"
leftIcon="#{richPanelMenuItemBean.attributes['leftIcon'].value}"
leftIconClass="#{richPanelMenuItemBean.attributes['leftIconClass'].value}"
@@ -67,6 +67,10 @@
limitRender="#{richPanelMenuItemBean.attributes['limitRender'].value}"
mode="#{richPanelMenuItemBean.attributes['mode'].value}"
onbeforedomupdate="#{richPanelMenuItemBean.attributes['onbeforedomupdate'].value}"
+
onbeforeselect="#{richPanelMenuItemBean.attributes['onbeforeselect'].value}"
+
onclick="#{richPanelMenuItemBean.attributes['onclick'].value}"
+
oncomplete="#{richPanelMenuItemBean.attributes['oncomplete'].value}"
+
ondblclick="#{richPanelMenuItemBean.attributes['ondblclick'].value}"
onmousedown="#{richPanelMenuItemBean.attributes['onmousedown'].value}"
onmousemove="#{richPanelMenuItemBean.attributes['onmousemove'].value}"
onmouseout="#{richPanelMenuItemBean.attributes['onmouseout'].value}"
@@ -76,6 +80,7 @@
onunselect="#{richPanelMenuItemBean.attributes['onunselect'].value}"
render="#{richPanelMenuItemBean.attributes['render'].value}"
rendered="#{richPanelMenuItemBean.attributes['rendered'].value}"
+
selectable="#{richPanelMenuItemBean.attributes['selectable'].value}"
status="#{richPanelMenuItemBean.attributes['status'].value}"
style="#{richPanelMenuItemBean.attributes['style'].value}"
styleClass="#{richPanelMenuItemBean.attributes['styleClass'].value}"
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/css/richDragBehavior.css
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/resources/css/richDragBehavior.css 2011-01-26
19:22:32 UTC (rev 21245)
+++
modules/tests/metamer/trunk/application/src/main/webapp/resources/css/richDragBehavior.css 2011-01-26
19:24:03 UTC (rev 21246)
@@ -30,4 +30,16 @@
.rf-ind-rejt {
background-color: red;
+}
+
+.acceptClass {
+ border: 5px solid green;
+}
+
+.draggingClass {
+ border: 5px solid black;
+}
+
+.rejectClass {
+ border: 5px solid #E80000;
}
\ No newline at end of file
Show replies by date