JBoss Rich Faces SVN: r20404 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/treeAdaptors/samples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-12-06 09:11:23 -0500 (Mon, 06 Dec 2010)
New Revision: 20404
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/treeAdaptors/samples/treeModelRecursiveAdaptor-sample.xhtml
Log:
style correction for tree adaptors demo.
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/treeAdaptors/samples/treeModelRecursiveAdaptor-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/treeAdaptors/samples/treeModelRecursiveAdaptor-sample.xhtml 2010-12-06 13:17:22 UTC (rev 20403)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/treeAdaptors/samples/treeModelRecursiveAdaptor-sample.xhtml 2010-12-06 14:11:23 UTC (rev 20404)
@@ -7,7 +7,7 @@
xmlns:rich="http://richfaces.org/rich">
<h:form>
- <rich:tree style="width:300px" toggleType="ajax" var="item">
+ <rich:tree toggleType="ajax" var="item">
<rich:treeModelRecursiveAdaptor roots="#{fileSystemBean.sourceRoots}" nodes="#{item.directories}" >
<rich:treeNode>
#{item.shortPath}
14 years, 1 month
JBoss Rich Faces SVN: r20403 - trunk/ui/dist/richfaces-components-api.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-12-06 08:17:22 -0500 (Mon, 06 Dec 2010)
New Revision: 20403
Modified:
trunk/ui/dist/richfaces-components-api/pom.xml
Log:
RF-9921
Modified: trunk/ui/dist/richfaces-components-api/pom.xml
===================================================================
--- trunk/ui/dist/richfaces-components-api/pom.xml 2010-12-06 13:03:11 UTC (rev 20402)
+++ trunk/ui/dist/richfaces-components-api/pom.xml 2010-12-06 13:17:22 UTC (rev 20403)
@@ -60,6 +60,10 @@
<groupId>org.richfaces.ui.input</groupId>
<artifactId>richfaces-ui-input-api</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.misc</groupId>
+ <artifactId>richfaces-ui-misc-api</artifactId>
+ </dependency>
<!-- for javadoc generation -->
<dependency>
@@ -173,4 +177,4 @@
<developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trunk/ui/dist/richfaces-com...</developerConnection>
<url>http://fisheye.jboss.org/browse/richfaces</url>
</scm>
-</project>
\ No newline at end of file
+</project>
14 years, 1 month
JBoss Rich Faces SVN: r20402 - modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-06 08:03:11 -0500 (Mon, 06 Dec 2010)
New Revision: 20402
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-837
* added itemChangeListener to tabPanel
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/simple.xhtml 2010-12-06 12:28:57 UTC (rev 20401)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/simple.xhtml 2010-12-06 13:03:11 UTC (rev 20402)
@@ -40,7 +40,7 @@
<ui:define name="component">
- <rich:tabPanel id="tabPanel"
+ <rich:tabPanel id="tabPanel"
activeItem="#{richTabPanelBean.attributes['activeItem'].value}"
bypassUpdates="#{richTabPanelBean.attributes['bypassUpdates'].value}"
cycledSwitching="#{richTabPanelBean.attributes['cycledSwitching'].value}"
@@ -52,13 +52,10 @@
headerPosition="#{richTabPanelBean.attributes['headerPosition'].value}"
immediate="#{richTabPanelBean.attributes['immediate'].value}"
itemByIndex="#{richTabPanelBean.attributes['itemByIndex'].value}"
- itemChangeListener="#{richTabPanelBean.attributes['itemChangeListener'].value}"
- itemChangeListeners="#{richTabPanelBean.attributes['itemChangeListeners'].value}"
+ itemChangeListener="#{richBean.itemChangeListener}"
lang="#{richTabPanelBean.attributes['lang'].value}"
lastItem="#{richTabPanelBean.attributes['lastItem'].value}"
limitToList="#{richTabPanelBean.attributes['limitToList'].value}"
- localValue="#{richTabPanelBean.attributes['localValue'].value}"
- localValueSet="#{richTabPanelBean.attributes['localValueSet'].value}"
nextItem="#{richTabPanelBean.attributes['nextItem'].value}"
onbeforeitemchange="#{richTabPanelBean.attributes['onbeforeitemchange'].value}"
onclick="#{richTabPanelBean.attributes['onclick'].value}"
14 years, 1 month
JBoss Rich Faces SVN: r20401 - modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-06 07:28:57 -0500 (Mon, 06 Dec 2010)
New Revision: 20401
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java
Log:
* attribute disabled value changed from string to boolean
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java 2010-12-06 12:23:22 UTC (rev 20400)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java 2010-12-06 12:28:57 UTC (rev 20401)
@@ -61,7 +61,7 @@
attributes.setAttribute("value", "command link");
attributes.setAttribute("rendered", "true");
- attributes.setAttribute("disabled", "false");
+ attributes.setAttribute("disabled", false);
attributes.get("disabled").setType(Boolean.class);
attributes.setAttribute("action", "first6CharsAction");
attributes.setAttribute("actionListener", "toUpperCaseActionListener");
14 years, 1 month
JBoss Rich Faces SVN: r20400 - in modules/tests/metamer/trunk/application/src/main: webapp/components and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-06 07:23:22 -0500 (Mon, 06 Dec 2010)
New Revision: 20400
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/simple.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
https://jira.jboss.org/browse/RF-9468
* added sample for rich:panelMenu
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-06 09:15:46 UTC (rev 20399)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-06 12:23:22 UTC (rev 20400)
@@ -134,6 +134,7 @@
components.put("richJQuery", "Rich jQuery");
components.put("richList", "Rich List");
components.put("richPanel", "Rich Panel");
+ components.put("richPanelMenu", "Rich Panel Menu");
components.put("richPopupPanel", "Rich Popup Panel");
components.put("richProgressBar", "Rich Progress Bar");
components.put("richSelect", "Rich Select");
Added: 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 (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java 2010-12-06 12:23:22 UTC (rev 20400)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import org.richfaces.component.UIPanelMenu;
+
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:panelMenu.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richPanelMenuBean")
+@SessionScoped
+public class RichPanelMenuBean implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+ private static Logger logger;
+ private Attributes attributes;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getUIComponentAttributes(UIPanelMenu.class, getClass(), false);
+
+ 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
+ attributes.remove("itemChangeListener");
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+}
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/list.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/list.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/list.xhtml 2010-12-06 12:23:22 UTC (rev 20400)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Panel Menu</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple" value="Simple">
+ Simple page containing <b>rich:panelMenu</b> and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/simple.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richPanelMenu/simple.xhtml 2010-12-06 12:23:22 UTC (rev 20400)
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+ xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates" value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:panelMenu id="panelMenu"
+ action="#{richBean.dummyAction}"
+ actionListener="#{richBean.dummyActionListener}"
+ activeItem="#{richPanelMenuBean.attributes['activeItem'].value}"
+ bubbleSelection="#{richPanelMenuBean.attributes['bubbleSelection'].value}"
+ bypassUpdates="#{richPanelMenuBean.attributes['bypassUpdates'].value}"
+ collapseEvent="#{richPanelMenuBean.attributes['collapseEvent'].value}"
+ data="#{richPanelMenuBean.attributes['data'].value}"
+ disabled="#{richPanelMenuBean.attributes['disabled'].value}"
+ execute="#{richPanelMenuBean.attributes['execute'].value}"
+ expandEvent="#{richPanelMenuBean.attributes['expandEvent'].value}"
+ expandSingle="#{richPanelMenuBean.attributes['expandSingle'].value}"
+ groupClass="#{richPanelMenuBean.attributes['groupClass'].value}"
+ groupCollapseIconLeft="#{richPanelMenuBean.attributes['groupCollapseIconLeft'].value}"
+ groupCollapseIconRight="#{richPanelMenuBean.attributes['groupCollapseIconRight'].value}"
+ groupDisableClass="#{richPanelMenuBean.attributes['groupDisableClass'].value}"
+ groupDisableIconLeft="#{richPanelMenuBean.attributes['groupDisableIconLeft'].value}"
+ groupDisableIconRight="#{richPanelMenuBean.attributes['groupDisableIconRight'].value}"
+ groupExpandIconLeft="#{richPanelMenuBean.attributes['groupExpandIconLeft'].value}"
+ groupExpandIconRight="#{richPanelMenuBean.attributes['groupExpandIconRight'].value}"
+ groupMode="#{richPanelMenuBean.attributes['groupMode'].value}"
+ immediate="#{richPanelMenuBean.attributes['immediate'].value}"
+ itemChangeListener="#{richBean.itemChangeListener}"
+ itemClass="#{richPanelMenuBean.attributes['topItemClass'].value}"
+ itemDisableClass="#{richPanelMenuBean.attributes['topItemDisableClass'].value}"
+ itemDisableIconLeft="#{richPanelMenuBean.attributes['topItemDisableIconLeft'].value}"
+ itemDisableIconRight="#{richPanelMenuBean.attributes['topItemDisableIconRight'].value}"
+ itemIconLeft="#{richPanelMenuBean.attributes['topItemDisableIconLeft'].value}"
+ itemIconRight="#{richPanelMenuBean.attributes['topItemDisableIconRight'].value}"
+ itemMode="#{richPanelMenuBean.attributes['itemMode'].value}"
+ limitToList="#{richPanelMenuBean.attributes['limitToList'].value}"
+ onclick="#{richPanelMenuBean.attributes['onclick'].value}"
+ ondblclick="#{richPanelMenuBean.attributes['ondblclick'].value}"
+ onmousedown="#{richPanelMenuBean.attributes['onmousedown'].value}"
+ onmousemove="#{richPanelMenuBean.attributes['onmousemove'].value}"
+ onmouseout="#{richPanelMenuBean.attributes['onmouseout'].value}"
+ onmouseover="#{richPanelMenuBean.attributes['onmouseover'].value}"
+ onmouseup="#{richPanelMenuBean.attributes['onmouseup'].value}"
+ render="#{richPanelMenuBean.attributes['render'].value}"
+ rendered="#{richPanelMenuBean.attributes['rendered'].value}"
+ status="#{richPanelMenuBean.attributes['status'].value}"
+ style="#{richPanelMenuBean.attributes['style'].value}"
+ styleClass="#{richPanelMenuBean.attributes['styleClass'].value}"
+ topGroupClass="#{richPanelMenuBean.attributes['topGroupClass'].value}"
+ topGroupCollapseIconLeft="#{richPanelMenuBean.attributes['topGroupCollapseIconLeft'].value}"
+ topGroupCollapseIconRight="#{richPanelMenuBean.attributes['topGroupCollapseIconRight'].value}"
+ topGroupDisableClass="#{richPanelMenuBean.attributes['topGroupDisableClass'].value}"
+ topGroupDisableIconLeft="#{richPanelMenuBean.attributes['topGroupDisableIconLeft'].value}"
+ topGroupDisableIconRight="#{richPanelMenuBean.attributes['topGroupDisableIconRight'].value}"
+ topGroupExpandIconLeft="#{richPanelMenuBean.attributes['topGroupExpandIconLeft'].value}"
+ topGroupExpandIconRight="#{richPanelMenuBean.attributes['topGroupExpandIconRight'].value}"
+ topItemClass="#{richPanelMenuBean.attributes['topItemClass'].value}"
+ topItemDisableClass="#{richPanelMenuBean.attributes['topItemDisableClass'].value}"
+ topItemDisableIconLeft="#{richPanelMenuBean.attributes['topItemDisableIconLeft'].value}"
+ topItemDisableIconRight="#{richPanelMenuBean.attributes['topItemDisableIconRight'].value}"
+ topItemIconLeft="#{richPanelMenuBean.attributes['topItemDisableIconLeft'].value}"
+ topItemIconRight="#{richPanelMenuBean.attributes['topItemDisableIconRight'].value}"
+ width="#{richPanelMenuBean.attributes['width'].value}"
+ >
+ <rich:panelMenuGroup id="group1" label="Group 1">
+ <rich:panelMenuItem id="item11" label="Item 1.1">
+ <f:param name="current" value="Item 1.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item12" label="Item 1.2">
+ <f:param name="current" value="Item 1.2" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item13" label="Item 1.3">
+ <f:param name="current" value="Item 1.3" />
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup id="group2" label="Group 2">
+ <rich:panelMenuItem id="item21" label="Item 2.1">
+ <f:param name="current" value="Item 2.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item22" label="Item 2.2">
+ <f:param name="current" value="Item 2.2" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item23" label="Item 2.3">
+ <f:param name="current" value="Item 2.3" />
+ </rich:panelMenuItem>
+ <rich:panelMenuGroup id="group24" label="Group 2.4">
+ <rich:panelMenuItem id="item241" label="Item 2.4.1">
+ <f:param name="current" value="Item 2.4.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item242" label="Item 2.4.2">
+ <f:param name="current" value="Item 2.4.2" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item243" label="Item 2.4.3">
+ <f:param name="current" value="Item 2.4.3" />
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuItem id="item25" label="Item 2.5" disabled="true">
+ <f:param name="current" value="Item 2.5" />
+ </rich:panelMenuItem>
+ <rich:panelMenuGroup id="group26" label="Group 2.6" disabled="true">
+ <rich:panelMenuItem id="item261" label="Item 2.6.1">
+ <f:param name="current" value="Item 2.6.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item262" label="Item 2.6.2">
+ <f:param name="current" value="Item 2.6.2" />
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup id="group3" label="Group 3">
+ <rich:panelMenuItem id="item31" label="Item 3.1">
+ <f:param name="current" value="Item 3.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item32" label="Item 3.2">
+ <f:param name="current" value="Item 3.2" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item33" label="Item 3.3">
+ <f:param name="current" value="Item 3.3" />
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup id="group4" label="Group 4" disabled="true">
+ <rich:panelMenuItem id="item41" label="Item 4.1">
+ <f:param name="current" value="Item 4.1" />
+ </rich:panelMenuItem>
+ <rich:panelMenuItem id="item42" label="Item 4.2">
+ <f:param name="current" value="Item 4.2" />
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
+
+ <br/><br/>
+
+ <fieldset>
+ <legend>selected item</legend>
+
+ <a4j:outputPanel id="selectedPanel" ajaxRendered="true">
+ <h:outputText id="current" value="#{richPanelMenuBean.attributes['activeItem'].value}" />
+ </a4j:outputPanel>
+ </fieldset>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richPanelMenuBean.attributes}" id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
14 years, 1 month
JBoss Rich Faces SVN: r20399 - in modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer: bean and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-06 04:15:46 -0500 (Mon, 06 Dec 2010)
New Revision: 20399
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
Log:
* small fixes
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-12-05 17:35:20 UTC (rev 20398)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-12-06 09:15:46 UTC (rev 20399)
@@ -365,6 +365,9 @@
set.add("hints");
set.add("id");
set.add("inView");
+ set.add("itemChangeListeners");
+ set.add("localValue");
+ set.add("localValueSet");
set.add("namingContainer");
set.add("parent");
set.add("rendererType");
@@ -372,6 +375,8 @@
set.add("resourceBundleMap");
set.add("stateHelper");
set.add("transient");
+ set.add("transientStateHelper");
+ set.add("valueChangeListeners");
return set;
}
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java 2010-12-05 17:35:20 UTC (rev 20398)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java 2010-12-06 09:15:46 UTC (rev 20399)
@@ -54,7 +54,7 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getUIComponentAttributes(UIPopupPanel.class, getClass());
+ attributes = Attributes.getUIComponentAttributes(UIPopupPanel.class, getClass(), false);
attributes.setAttribute("header", "popup panel header");
attributes.setAttribute("height", 300);
@@ -69,7 +69,6 @@
attributes.setAttribute("top", "auto");
attributes.setAttribute("trimOverlayedElements", true);
attributes.setAttribute("width", 500);
-
}
public Attributes getAttributes() {
14 years, 1 month
JBoss Rich Faces SVN: r20398 - modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-12-05 12:35:20 -0500 (Sun, 05 Dec 2010)
New Revision: 20398
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableToggleControlBean.java
Log:
fixing compilation errors after renaming subtable/subtableToggleControl (added collapsible- prefixes)
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableBean.java 2010-12-05 17:34:35 UTC (rev 20397)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableBean.java 2010-12-05 17:35:20 UTC (rev 20398)
@@ -29,8 +29,8 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
-import org.richfaces.component.UISubTable;
+import org.richfaces.component.UICollapsibleSubTable;
import org.richfaces.tests.metamer.Attributes;
import org.richfaces.tests.metamer.model.Employee;
import org.richfaces.tests.metamer.model.Employee.Sex;
@@ -39,7 +39,7 @@
/**
* Managed bean for rich:subTable.
- *
+ *
* @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
* @version $Revision$
*/
@@ -63,9 +63,9 @@
public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getUIComponentAttributes(UICollapsibleSubTable.class, getClass());
- attributes = Attributes.getUIComponentAttributes(UISubTable.class, getClass());
-
attributes.setAttribute("expandMode", "client");
attributes.setAttribute("expanded", true);
attributes.setAttribute("rendered", true);
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableToggleControlBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableToggleControlBean.java 2010-12-05 17:34:35 UTC (rev 20397)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichSubTableToggleControlBean.java 2010-12-05 17:35:20 UTC (rev 20398)
@@ -29,8 +29,8 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
-import org.richfaces.component.UISubTableToggleControl;
+import org.richfaces.component.UICollapsibleSubTableToggleControl;
import org.richfaces.tests.metamer.Attributes;
import org.richfaces.tests.metamer.model.Employee;
import org.richfaces.tests.metamer.model.Employee.Sex;
@@ -39,7 +39,7 @@
/**
* Managed bean for rich:subTableToggleControl.
- *
+ *
* @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
* @version $Revision$
*/
@@ -63,8 +63,8 @@
public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
-
- attributes = Attributes.getUIComponentAttributes(UISubTableToggleControl.class, getClass());
+
+ attributes = Attributes.getUIComponentAttributes(UICollapsibleSubTableToggleControl.class, getClass());
attributes.setAttribute("event", "click");
attributes.setAttribute("rendered", true);
// TODO these attributes have to be tested in another way
14 years, 1 month
JBoss Rich Faces SVN: r20397 - in modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest: richDataScroller and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-12-05 12:34:35 -0500 (Sun, 05 Dec 2010)
New Revision: 20397
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/ExtendedDataTable.java
Removed:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/DataTable.java
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDataScroller/AbstractScrollerTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richExtendedDataTable/TestScroller.java
Log:
DataTable model class renamed to ExtendedDataTable
Deleted: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/DataTable.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/DataTable.java 2010-12-04 00:57:14 UTC (rev 20396)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/DataTable.java 2010-12-05 17:34:35 UTC (rev 20397)
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *******************************************************************************/
-package org.richfaces.tests.metamer.ftest.model;
-
-import org.jboss.test.selenium.framework.AjaxSelenium;
-import org.jboss.test.selenium.framework.AjaxSeleniumProxy;
-import org.jboss.test.selenium.locator.JQueryLocator;
-import org.jboss.test.selenium.locator.reference.ReferencedLocator;
-
-import static org.jboss.test.selenium.locator.reference.ReferencedLocator.*;
-
-/**
- * Provides methods to control DataTable
- *
- * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
- * @version $Revision$
- */
-public class DataTable extends AbstractModel<JQueryLocator> {
-
- AjaxSelenium selenium = AjaxSeleniumProxy.getInstance();
-
- ReferencedLocator<JQueryLocator> tableRows = ref(root, "> div.rf-edt-b table table tr");
-
- public DataTable(JQueryLocator root) {
- super(root);
- }
-
- public DataTable(String name, JQueryLocator root) {
- super(name, root);
- }
-
- public int getCountOfTableRows() {
- return selenium.getCount(tableRows);
- }
-
- public String getTableText() {
- return selenium.getText(root.getLocator());
- }
-}
Copied: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/ExtendedDataTable.java (from rev 20308, modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/DataTable.java)
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/ExtendedDataTable.java (rev 0)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/model/ExtendedDataTable.java 2010-12-05 17:34:35 UTC (rev 20397)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.model;
+
+import org.jboss.test.selenium.framework.AjaxSelenium;
+import org.jboss.test.selenium.framework.AjaxSeleniumProxy;
+import org.jboss.test.selenium.locator.JQueryLocator;
+import org.jboss.test.selenium.locator.reference.ReferencedLocator;
+
+import static org.jboss.test.selenium.locator.reference.ReferencedLocator.*;
+
+/**
+ * Provides methods to control DataTable
+ *
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class ExtendedDataTable extends AbstractModel<JQueryLocator> {
+
+ AjaxSelenium selenium = AjaxSeleniumProxy.getInstance();
+
+ ReferencedLocator<JQueryLocator> tableRows = ref(root, "> div.rf-edt-b table table tr");
+
+ public ExtendedDataTable(JQueryLocator root) {
+ super(root);
+ }
+
+ public ExtendedDataTable(String name, JQueryLocator root) {
+ super(name, root);
+ }
+
+ public int getCountOfTableRows() {
+ return selenium.getCount(tableRows);
+ }
+
+ public String getTableText() {
+ return selenium.getText(root.getLocator());
+ }
+}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDataScroller/AbstractScrollerTest.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDataScroller/AbstractScrollerTest.java 2010-12-04 00:57:14 UTC (rev 20396)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDataScroller/AbstractScrollerTest.java 2010-12-05 17:34:35 UTC (rev 20397)
@@ -34,7 +34,7 @@
import org.richfaces.tests.metamer.ftest.annotations.Inject;
import org.richfaces.tests.metamer.ftest.annotations.Use;
import org.richfaces.tests.metamer.ftest.model.DataScroller;
-import org.richfaces.tests.metamer.ftest.model.DataTable;
+import org.richfaces.tests.metamer.ftest.model.ExtendedDataTable;
import org.testng.annotations.BeforeMethod;
/**
@@ -75,7 +75,7 @@
IdLocator attributeFastStep = id("form:attributes:fastStepInput");
IdLocator attributeMaxPages = id("form:attributes:maxPagesInput");
- DataTable dataTable = new DataTable(pjq("table.rf-dt[id$=richDataTable]"));
+ ExtendedDataTable dataTable = new ExtendedDataTable(pjq("table.rf-dt[id$=richDataTable]"));
String tableText;
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richExtendedDataTable/TestScroller.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richExtendedDataTable/TestScroller.java 2010-12-04 00:57:14 UTC (rev 20396)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richExtendedDataTable/TestScroller.java 2010-12-05 17:34:35 UTC (rev 20397)
@@ -32,7 +32,7 @@
import org.richfaces.tests.metamer.ftest.annotations.Templates;
import org.richfaces.tests.metamer.ftest.model.AssertingDataScroller;
import org.richfaces.tests.metamer.ftest.model.DataScroller;
-import org.richfaces.tests.metamer.ftest.model.DataTable;
+import org.richfaces.tests.metamer.ftest.model.ExtendedDataTable;
import org.testng.annotations.Test;
/**
@@ -48,7 +48,7 @@
TOTAL_ROW_COUNT + 1, 2 * TOTAL_ROW_COUNT };
DataScroller dataScroller1 = new AssertingDataScroller("outside-table", pjq("span.rf-ds[id$=scroller1]"));
DataScroller dataScroller2 = new AssertingDataScroller("inside-table-footer", pjq("span.rf-ds[id$=scroller2]"));
- DataTable table = new DataTable(pjq("div.rf-edt[id$=richEDT]"));
+ ExtendedDataTable table = new ExtendedDataTable(pjq("div.rf-edt[id$=richEDT]"));
IdLocator attributeRowsInput = id("form:attributes:rowsInput");
@Override
14 years, 1 month