JBoss Rich Faces SVN: r19225 - branches/RF-9151/examples/input-demo/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-09-16 14:08:24 -0400 (Thu, 16 Sep 2010)
New Revision: 19225
Added:
branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml
Modified:
branches/RF-9151/examples/input-demo/src/main/webapp/index.xhtml
Log:
RF-9200
Modified: branches/RF-9151/examples/input-demo/src/main/webapp/index.xhtml
===================================================================
--- branches/RF-9151/examples/input-demo/src/main/webapp/index.xhtml 2010-09-…
[View More]16 18:06:09 UTC (rev 19224)
+++ branches/RF-9151/examples/input-demo/src/main/webapp/index.xhtml 2010-09-16 18:08:24 UTC (rev 19225)
@@ -10,6 +10,7 @@
<ul>
<li><h:link outcome="inplaceInput">rich:inplaceInput</h:link></li>
<li><h:link outcome="inputNumberSlider">rich:inputNumberSlider</h:link></li>
+ <li><h:link outcome="inputNumberSpinner">rich:inputNumberSpinner</h:link></li>
<li><h:link outcome="autocomplete">rich:autocomplete</h:link></li>
</ul>
Added: branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml
===================================================================
--- branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml (rev 0)
+++ branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml 2010-09-16 18:08:24 UTC (rev 19225)
@@ -0,0 +1,85 @@
+<?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:ins="http://richfaces.org/input">
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, 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.
+-->
+ <h:head>
+ <title>Richfaces InputNumberSlider Demo</title>
+ </h:head>
+ <h:body>
+ <h:form id="form">
+ <h:outputText value="Skin: "/>
+ <h:selectOneMenu value="#{skinBean.skin}" onchange="submit();">
+ <f:selectItems value="#{skinBean.skins}"/>
+ </h:selectOneMenu>
+ <br />
+ <ins:inputNumberSpinner id="ins" value="#{inputNumberSliderBean.value}" accesskey="#{inputNumberSliderBean.accesskey}" delay="#{inputNumberSliderBean.delay}"
+ disabled="#{inputNumberSliderBean.disabled}" enableManualInput="#{inputNumberSliderBean.enableManualInput}"
+ inputPosition="#{inputNumberSliderBean.inputPosition}" inputSize="#{inputNumberSliderBean.inputSize}" showArrows="#{inputNumberSliderBean.showArrows}"
+ showBoundaryValues="#{inputNumberSliderBean.showBoundaryValues}" showInput="#{inputNumberSliderBean.showInput}"
+ showToolTip="#{inputNumberSliderBean.showToolTip}" maxValue="#{inputNumberSliderBean.maxValue}" minValue="#{inputNumberSliderBean.minValue}"
+ step="#{inputNumberSliderBean.step}" />
+ <br />
+ <h:outputText value="Accesskey: "/>
+ <h:inputText value="#{inputNumberSliderBean.accesskey}">
+ <f:ajax render="ins"/>
+ </h:inputText>
+ <br />
+ <h:outputText value="EnableManualInput: "/>
+ <h:selectBooleanCheckbox value="#{inputNumberSliderBean.enableManualInput}">
+ <f:ajax render="ins"/>
+ </h:selectBooleanCheckbox>
+ <br />
+ <h:outputText value="Disabled "/>
+ <h:selectBooleanCheckbox value="#{inputNumberSliderBean.disabled}">
+ <f:ajax render="ins"/>
+ </h:selectBooleanCheckbox>
+ <br />
+ <h:outputText value="InputSize: "/>
+ <h:inputText value="#{inputNumberSliderBean.inputSize}">
+ <f:ajax render="ins"/>
+ </h:inputText>
+ <br />
+ <h:outputText value="MaxValue: "/>
+ <h:inputText value="#{inputNumberSliderBean.maxValue}">
+ <f:ajax render="ins"/>
+ </h:inputText>
+ <br />
+ <h:outputText value="MinValue: "/>
+ <h:inputText value="#{inputNumberSliderBean.minValue}">
+ <f:ajax render="ins"/>
+ </h:inputText>
+ <br />
+ <h:outputText value="Step: "/>
+ <h:inputText value="#{inputNumberSliderBean.step}">
+ <f:ajax render="ins"/>
+ </h:inputText>
+ </h:form>
+ </h:body>
+</html>
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19224 - in branches/RF-9151/ui/input/ui/src/main: resources/META-INF/resources/org.richfaces and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-09-16 14:06:09 -0400 (Thu, 16 Sep 2010)
New Revision: 19224
Added:
branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.ecss
branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.js
branches/RF-9151/ui/input/ui/src/main/templates/inputnumberspinner.template.xml
Modified:
branches/RF-9151/ui/input/ui/src/main/config/faces-config.xml
Log:
RF-9193
Modified:…
[View More] branches/RF-9151/ui/input/ui/src/main/config/faces-config.xml
===================================================================
--- branches/RF-9151/ui/input/ui/src/main/config/faces-config.xml 2010-09-16 14:45:37 UTC (rev 19223)
+++ branches/RF-9151/ui/input/ui/src/main/config/faces-config.xml 2010-09-16 18:06:09 UTC (rev 19224)
@@ -237,6 +237,104 @@
</cdk:tag>
</component-extension>
</component>
+ <component>
+ <component-type>org.richfaces.InputNumberSpinner</component-type>
+ <component-class>org.richfaces.component.html.HtmlInputNumberSpinner</component-class>
+ <property>
+ <property-name>accesskey</property-name>
+ <property-class>java.lang.String</property-class>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>disabled</property-name>
+ <property-class>boolean</property-class>
+ <default-value>false</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>enableManualInput</property-name>
+ <property-class>boolean</property-class>
+ <default-value>true</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>inputClass</property-name>
+ <property-class>java.lang.String</property-class>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>inputSize</property-name>
+ <property-class>int</property-class>
+ <default-value>10</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>maxValue</property-name>
+ <property-class>java.lang.String</property-class>
+ <default-value>"100"</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>minValue</property-name>
+ <property-class>java.lang.String</property-class>
+ <default-value>"0"</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>step</property-name>
+ <property-class>java.lang.String</property-class>
+ <default-value>"1"</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>style</property-name>
+ <property-class>java.lang.String</property-class>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>styleClass</property-name>
+ <property-class>java.lang.String</property-class>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <property>
+ <property-name>tabindex</property-name>
+ <property-class>int</property-class>
+ <default-value>Integer.MIN_VALUE</default-value>
+ <property-extension>
+ <cdk:generate>true</cdk:generate>
+ </property-extension>
+ </property>
+ <component-extension>
+ <cdk:generate>true</cdk:generate>
+ <cdk:base-class>javax.faces.component.UIInput</cdk:base-class>
+ <cdk:component-family>javax.faces.Input</cdk:component-family>
+ <cdk:renderer-type>org.richfaces.InputNumberSpinnerRenderer</cdk:renderer-type>
+ <cdk:tag>
+ <cdk:tag-name>inputNumberSpinner</cdk:tag-name>
+ <cdk:tag-type>Facelets</cdk:tag-type>
+ </cdk:tag>
+ </component-extension>
+ </component>
<faces-config-extension>
<cdk:taglib>
<cdk:shortName>input</cdk:shortName>
Added: branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.ecss
===================================================================
--- branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.ecss (rev 0)
+++ branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.ecss 2010-09-16 18:06:09 UTC (rev 19224)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.
+ */
+.rf-insp {
+ border: 1px solid #A6A6A6/*panelBorderColor*/;
+ display: inline-block;
+ background: url("#{resource['bg_field.png']}") top left repeat-x;/*gradient - from additionalBackgroundColor to controlBackgroundColor, background-color - controlBackgroundColor*/;
+ white-space: nowrap;
+ font-size: 1px;
+}
+
+input[type="text"].rf-insp-inp {
+ vertical-align: top;
+ color: #000000;/*generalTextColor*/
+ border: 0px;
+ background: none;
+ margin: 0px;
+ padding: 0px;
+}
+
+.rf-insp-btna {
+ vertical-align: top;
+ background: url("#{resource['bg_btn.png']}") top left repeat-x #C0D1E7/*gradient - from headerGradientColor to headerBackgroundColor, background-color - headerBackgroundColor*/;
+ border-left: 1px solid #A6A6A6/*panelBorderColor*/;
+ width: 16px;
+ height: 15px;
+ display: inline-block;
+}
+
+.rf-insp-dbtn {
+ display: block;
+ height: 7px;
+ background-image: url("#{resource['button_down.gif']}");
+ width: 15px;
+ padding-top: 1px;
+}
+
+.rf-insp-ibtn {
+ display: block;
+ height: 7px;
+ background-image: url("#{resource['button_up.gif']}");
+ width: 15px;
+ padding-top: 1px;
+}
\ No newline at end of file
Property changes on: branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.ecss
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.js
===================================================================
--- branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.js (rev 0)
+++ branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.js 2010-09-16 18:06:09 UTC (rev 19224)
@@ -0,0 +1,140 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.
+ */
+(function(richfaces, jQuery) {
+ richfaces.ui = richfaces.ui || {};
+
+ richfaces.ui.InputNumberSpinner = richfaces.BaseComponent.extendClass({
+
+ name: "InputNumberSpinner",
+
+ delay: 200,
+ maxValue: 100,
+ minValue: 0,
+ step: 1,
+
+ init: function (id, options) {
+ jQuery.extend(this, options);
+ this.id = id;
+ this.element = jQuery(this.attachToDom());
+ this.input = this.element.children(".rf-insp-inp");
+
+ this.__inputHandler();
+
+ if (!this.input.attr("disabled")) {
+ var buttonsArea = this.element.children(".rf-insp-btna");
+ this.decreaseButton = buttonsArea.children(".rf-insp-dbtn");
+ this.increaseButton = buttonsArea.children(".rf-insp-ibtn");
+
+ var proxy = jQuery.proxy(this.__inputHandler, this)
+ this.input.change(proxy);
+ this.input.submit(proxy);
+ this.input.submit(proxy);
+ this.input.keydown(jQuery.proxy(this.__keydownHandler, this));
+ this.decreaseButton.mousedown(jQuery.proxy(this.__decreaseHandler, this));
+ this.increaseButton.mousedown(jQuery.proxy(this.__increaseHandler, this));
+ }
+ },
+
+ decrease: function (event) {
+ this.setValue(this.value - this.step);
+ },
+
+ increase: function (event) {
+ this.setValue(this.value + this.step);
+ },
+
+ getValue: function () {
+ return this.value;
+ },
+
+ setValue: function (value) {
+ if (!this.input.attr("disabled")) {
+ this.__setValue(value);
+ }
+ },
+
+ __setValue: function (value) {
+ if (!isNaN(value)) {
+ value = Math.round(value / this.step) * this.step; //TODO Add normal support of float values. E.g. '0.3' should be instead of '0.30000000000000004'.
+ if (value > this.maxValue) {
+ value = this.maxValue;
+ } else if (value < this.minValue) {
+ value = this.minValue;
+ }
+ if (value != this.value) {
+ this.input.val(value);
+ this.value = value;
+ }
+ }
+ },
+
+ __inputHandler: function () {
+ var value = Number(this.input.val());
+ if (isNaN(value)) {
+ this.input.val(this.value);
+ } else {
+ this.__setValue(value);
+ }
+ },
+
+ __keydownHandler: function (event) {
+ if (event.keyCode == 40) { //DOWN
+ this.decrease();
+ event.preventDefault();
+ } else if (event.keyCode == 38) { //UP
+ this.increase();
+ event.preventDefault();
+ }
+ },
+
+ __decreaseHandler: function (event) {
+ var component = this;
+ component.decrease();
+ this.intervalId = window.setInterval(function() {
+ component.decrease();
+ }, this.delay);
+ jQuery(document).one("mouseup", true, jQuery.proxy(this.__clearInterval, this));
+ this.decreaseButton.css("backgroundPosition", "60% 55%");
+ event.preventDefault();
+ },
+
+ __increaseHandler: function (event) {
+ var component = this;
+ component.increase();
+ this.intervalId = window.setInterval(function() {
+ component.increase();
+ }, this.delay);
+ jQuery(document).one("mouseup",jQuery.proxy(this.__clearInterval, this));
+ this.increaseButton.css("backgroundPosition", "60% 55%");
+ event.preventDefault();
+ },
+
+ __clearInterval: function (event) {
+ window.clearInterval(this.intervalId);
+ if (event.data) { // decreaseButton
+ this.decreaseButton.css("backgroundPosition", "");
+ } else {
+ this.increaseButton.css("backgroundPosition", "");
+ }
+ }
+ });
+}(window.RichFaces, jQuery));
\ No newline at end of file
Property changes on: branches/RF-9151/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSpinner.js
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/RF-9151/ui/input/ui/src/main/templates/inputnumberspinner.template.xml
===================================================================
--- branches/RF-9151/ui/input/ui/src/main/templates/inputnumberspinner.template.xml (rev 0)
+++ branches/RF-9151/ui/input/ui/src/main/templates/inputnumberspinner.template.xml 2010-09-16 18:06:09 UTC (rev 19224)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, 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.
+-->
+<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el" xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
+ xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite" xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <cc:interface>
+ <cdk:class>org.richfaces.renderkit.html.InputNumberSpinnerRenderer</cdk:class>
+ <cdk:superclass>org.richfaces.renderkit.InputRendererBase</cdk:superclass>
+ <cdk:component-family>javax.faces.Input</cdk:component-family>
+ <cdk:renderer-type>org.richfaces.InputNumberSpinnerRenderer</cdk:renderer-type>
+ <cdk:resource-dependency library="org.richfaces" name="inputNumberSpinner.ecss" />
+ <cdk:resource-dependency library="org.richfaces" name="base-component.reslib" />
+ <cdk:resource-dependency name="jquery.position.js" />
+ <cdk:resource-dependency library="org.richfaces" name="inputNumberSpinner.js" />
+ </cc:interface>
+ <cc:implementation>
+ <span id="#{clientId}" class="rf-insp #{component.attributes['styleClass']}" cdk:passThroughWithExclusions="id class" >
+ <input name="#{clientId}" type="text"
+ class="rf-insp-inp #{component.attributes['inputClass']}" value="#{getInputValue(facesContext, component)}"
+ cdk:passThrough="accesskey disabled maxlength size:inputSize tabindex" readonly="#{!component.attributes['enableManualInput']}" />
+ <span class="rf-insp-btna">
+ <span class="rf-insp-ibtn" />
+ <span class="rf-insp-dbtn" />
+ </span>
+ <script type="text/javascript">new RichFaces.ui.InputNumberSpinner('#{clientId}', {
+ maxValue: #{component.attributes['maxValue']},
+ minValue: #{component.attributes['minValue']},
+ step: #{component.attributes['step']}
+ });</script>
+ </span>
+ </cc:implementation>
+</cdk:root>
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19223 - in modules/tests/metamer/trunk/ftest-source: src/main/java/org/richfaces/tests/metamer/ftest and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-16 10:45:37 -0400 (Thu, 16 Sep 2010)
New Revision: 19223
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/IntervalAttributes.java
Modified:
modules/tests/metamer/trunk/ftest-source/.gitignore
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/…
[View More]metamer/ftest/a4jPoll/TestInterval.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPush/TestInterval.java
Log:
fix and stabilized tests for a4j:poll and a4j:push
Modified: modules/tests/metamer/trunk/ftest-source/.gitignore
===================================================================
--- modules/tests/metamer/trunk/ftest-source/.gitignore 2010-09-16 14:44:19 UTC (rev 19222)
+++ modules/tests/metamer/trunk/ftest-source/.gitignore 2010-09-16 14:45:37 UTC (rev 19223)
@@ -2,4 +2,5 @@
/.project
/.settings
/target
+/test-output
/profiles.xml
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2010-09-16 14:44:19 UTC (rev 19222)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2010-09-16 14:45:37 UTC (rev 19223)
@@ -35,6 +35,8 @@
import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardHttp;
import static org.richfaces.tests.metamer.ftest.AbstractMetamerTest.pjq;
import static org.jboss.test.selenium.locator.reference.ReferencedLocator.referenceInferred;
+import static org.jboss.test.selenium.waiting.WaitFactory.waitGui;
+import static org.jboss.test.selenium.waiting.WaitFactory.elementPresent;
/**
* @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
@@ -64,6 +66,7 @@
final ElementLocator<?> locator = propertyLocator.format(propertyName);
final AttributeLocator<?> typeLocator = locator.getAttribute(Attribute.TYPE);
+ waitGui.until(elementPresent.locator(locator));
String inputType = selenium.getAttribute(typeLocator);
if (value == null) {
Added: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/IntervalAttributes.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/IntervalAttributes.java (rev 0)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/IntervalAttributes.java 2010-09-16 14:45:37 UTC (rev 19223)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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.a4jPoll;
+
+import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
+
+/**
+ * Tests the a4j:poll component.
+ *
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class IntervalAttributes extends AbstractComponentAttributes {
+ public void setEnabled(boolean enabled) {
+ setProperty("enabled", enabled);
+ }
+
+ public void setInterval(long interval) {
+ setProperty("interval", interval);
+ }
+}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/TestInterval.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/TestInterval.java 2010-09-16 14:44:19 UTC (rev 19222)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPoll/TestInterval.java 2010-09-16 14:45:37 UTC (rev 19223)
@@ -56,8 +56,8 @@
@Inject
int interval;
- IdLocator attributeEnabled = id("form:attributes:enabledInput");
- IdLocator attributeInterval = id("form:attributes:intervalInput");
+ IntervalAttributes attributes = new IntervalAttributes();
+
JQueryLocator time = pjq("span[id$=time]");
AttributeLocator<?> clientTime = pjq("span[id$=clientDate]").getAttribute(Attribute.TITLE);
@@ -109,11 +109,9 @@
* </p>
*/
public void testClient() {
- guardHttp(selenium).type(attributeInterval, String.valueOf(interval));
+ attributes.setEnabled(true);
+ attributes.setInterval(interval);
- selenium.check(attributeEnabled);
- guardHttp(selenium).fireEvent(attributeEnabled, Event.CHANGE);
-
waitForPoll();
for (int i = 0; i < ITERATION_COUNT; i++) {
startInterval();
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPush/TestInterval.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPush/TestInterval.java 2010-09-16 14:44:19 UTC (rev 19222)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jPush/TestInterval.java 2010-09-16 14:45:37 UTC (rev 19223)
@@ -51,7 +51,7 @@
@Inject
int interval;
- AttributeLocator<?> clientTime = pjq("span[id$=metamerOutputTime]").getAttribute(Attribute.TITLE);
+ AttributeLocator<?> clientTime = pjq("span[id$=clientDate\\:outputTime]").getAttribute(Attribute.TITLE);
long startTime;
int counter;
@@ -193,6 +193,7 @@
* @return the time of push event (the time when arrived the response from server)
*/
private long getClientTime() {
+ waitGui.until(attributePresent.locator(clientTime));
return asLong(selenium.getAttribute(clientTime));
}
}
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19222 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richComponentControl.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-16 10:44:19 -0400 (Thu, 16 Sep 2010)
New Revision: 19222
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richComponentControl/TestDataScroller.java
Log:
added issue tracking for RF-9306
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richComponentControl/TestDataScroller.java
===================================================================
--- …
[View More]modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richComponentControl/TestDataScroller.java 2010-09-16 14:43:38 UTC (rev 19221)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richComponentControl/TestDataScroller.java 2010-09-16 14:44:19 UTC (rev 19222)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.richfaces.tests.metamer.ftest.richDataScroller.PaginationTester;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -65,6 +66,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9306")
public void testScrollerPagination() {
paginationTester.testNumberedPages();
}
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19221 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-16 10:43:38 -0400 (Thu, 16 Sep 2010)
New Revision: 19221
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/QueueModel.java
Log:
expected delay between two requests to queue was increated from 50 to 150
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/QueueModel.java
===================================================================
--…
[View More]- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/QueueModel.java 2010-09-16 03:46:10 UTC (rev 19220)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/QueueModel.java 2010-09-16 14:43:38 UTC (rev 19221)
@@ -151,7 +151,7 @@
long event2Time = retrieveEvent2Time.retrieve();
long actualDelay = Math.abs(event1Time - event2Time);
- checkDeviation(actualDelay, 50);
+ checkDeviation(actualDelay, 150);
}
public void checkDeviation(long deviation, long maxDeviation) {
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19220 - in modules/docs/branches/M3_draft: Migration_Guide/src/main/docbook/en-US and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-09-15 23:46:10 -0400 (Wed, 15 Sep 2010)
New Revision: 19220
Modified:
modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
modules/docs/branches/M3_draft/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml
Log:
Added rich:collapsiblePanel (RF-8830)
Modified: modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-…
[View More]Panels_and_containers.xml
===================================================================
--- modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-09-15 23:43:35 UTC (rev 19219)
+++ modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-09-16 03:46:10 UTC (rev 19220)
@@ -468,44 +468,151 @@
</section>
</section>
- <!-- TODO not in M2 -->
- <!--
- <section id="sect-Component_Reference-Panels_and_containers-richsimpleTogglePanel">
- <title><sgmltag><rich:simpleTogglePanel></sgmltag></title>
+ <!--<rich:collapsiblePanel>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richcollapsiblePanel">
+ <title><sgmltag><rich:collapsiblePanel></sgmltag></title>
<para>
- The <sgmltag><rich:simpleTogglePanel></sgmltag> component is a collapsible panel that shows or hides content when the header bar is activated. It is a simplified version of <sgmltag><rich:togglePanel></sgmltag> component.
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component is a collapsible panel that shows or hides content when the header bar is activated. It is a simplified version of <sgmltag><rich:togglePanel></sgmltag> component.
</para>
- <para>
- Basic usage requires only the <varname>label</varname> attribute to be specified, which provides the title for the header element.
- </para>
- <para>
- The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <literal>server</literal>, the default setting, which causes the <sgmltag><rich:simpleTogglePanel></sgmltag> component to perform a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>ajax</literal>, which causes the <sgmltag><rich:simpleTogglePanel></sgmltag> component to perform an Ajax form submission, and the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>client</literal>, which causes <sgmltag><rich:simpleTogglePanel></sgmltag> components to update on the client side, re-rendering themselves and any additional components listed with the <code>render</code> attribute.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- If the <sgmltag><rich:simpleTogglePanel></sgmltag> component uses <code>opened="true"</code>, the panel is open and expanded, otherwise it is closed and collapsed.
- </para>
- <para>
- The <code>openMarker</code> and <code>closeMarker</code> attributes can be used to define custom icons for the expanding header.
- </para>
+ <figure id="figu-Component_Reference-richcollapsiblePanel-richcollapsiblePanel">
+ <title><sgmltag><rich:collapsiblePanel></sgmltag></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richcollapsiblePanel-richcollapsiblePanel.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:collapsiblePanel></sgmltag> component displaying details on a camera model.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richcollapsiblePanel-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ Basic usage requires only the <varname>label</varname> attribute to be specified, which provides the title for the header element.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richcollapsiblePanel-Expanding_and_collapsing_the_panel">
+ <title>Expanding and collapsing the panel</title>
+ <para>
+ If the <sgmltag><rich:collapsiblePanel></sgmltag> component uses <code><varname>expanded</varname>="true"</code>, the panel is open and expanded, otherwise it is closed and collapsed.
+ </para>
+ <para>
+ The <varname>toggleElement</varname> attribute is used to specify which user interface element triggers the expansion when clicked. It can have one of the following values:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>heading</literal></term>
+ <listitem>
+ <para>
+ This is the default setting. Clicking anywhere on the header of the panel will cause it to expand or collapse.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>panel</literal></term>
+ <listitem>
+ <para>
+ Clicking anywhere on the entire panel will cause it to expand or collapse.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>control</literal></term>
+ <listitem>
+ <para>
+ The panel can only be expanded or collapsed by clicking on the control in the right-hand side of the header.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ The switching mode for performing submissions is determined by the <varname>switchType</varname> attribute, which can have one of the following three values:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>server</literal></term>
+ <listitem>
+ <para>
+ This is the default setting. The <sgmltag><rich:collapsiblePanel></sgmltag> component performs a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>ajax</literal></term>
+ <listitem>
+ <para>
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component performs an Ajax form submission, and only the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>client</literal></term>
+ <listitem>
+ <para>
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component updates on the client side, re-rendering itself and any additional components listed with the <varname>render</varname> attribute.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <section id="sect-Component_Reference-richcollapsiblePanel-Appearance">
+ <title>Appearance</title>
+ <para>
+ The appearance of the <sgmltag><rich:collapsiblePanel></sgmltag> component can be customized using facets. The <literal>headerExpanded</literal> and <literal>headerCollapsed</literal> facets are used to style the appearance of the panel when it is expanded and collapsed respectively. The <literal>expandControl</literal> facet styles the control in the panel header used for expanding, and the <literal>collapseControl</literal> facet styles the control for collapsing.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richcollapsiblePanel-richcollapsiblePanel_server-side_events">
+ <title><sgmltag><rich:collapsiblePanel></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component uses the following unique server-side events:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>ChangeExpandEvent</varname> event occurs on the server side when the <sgmltag><rich:collapsiblePanel></sgmltag> component is expanded or collapsed through Ajax using the <literal>server</literal> mode. It can be processed using the <varname>ChangeExpandListener</varname> attribute.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richcollapsiblePanel-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.collapsiblePanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlcollapsiblePanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.collapsiblePanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.collapsiblePanelRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.collapsiblePanelTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
</section>
- -->
<!--<rich:tab>-->
<section id="sect-Component_Reference-Panels_and_containers-richtab">
@@ -906,30 +1013,6 @@
<para>
The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
</para>
- <itemizedlist>
- <listitem>
- <para>
- <literal>server</literal>, the default setting, which causes the child components to perform a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>ajax</literal>, which causes the child components to perform an Ajax form submission, and the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>client</literal>, which causes the child components to update on the client side. JavaScript changes the styles such that one component becomes hidden while the other is shown.
- </para>
- </listitem>
- </itemizedlist>
- </section>
-
- <section id="sect-Component_Reference-richtogglePanel-Switching_panels">
- <title>Switching panels</title>
- <para>
- The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
- </para>
<variablelist>
<varlistentry>
<term><literal>server</literal></term>
Modified: modules/docs/branches/M3_draft/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml
===================================================================
--- modules/docs/branches/M3_draft/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml 2010-09-15 23:43:35 UTC (rev 19219)
+++ modules/docs/branches/M3_draft/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml 2010-09-16 03:46:10 UTC (rev 19220)
@@ -4,12 +4,12 @@
<chapter id="chap-Migration_Guide-Changes_and_new_features">
<title>Changes and new features</title>
<para>
- There have been several changes made to the RichFaces framework for version &VERSION; that may affect migrated projects.
+ There have been several changes made to the RichFaces framework for version 4 that may affect migrated projects.
</para>
<section id="sect-Migration_Guide-Changes_and_new_features-JSF_2_integration">
<title>JSF 2 integration</title>
<para>
- RichFaces &VERSION; has full support for JavaServer Faces (<acronym>JSF</acronym>) 2. Due to limited support for JavaServer Pages (JSP) in JSF2, RichFaces no longer fully supports JSP either.
+ RichFaces 4 has full support for JavaServer Faces (<acronym>JSF</acronym>) 2. Due to limited support for JavaServer Pages (JSP) in JSF2, RichFaces no longer fully supports JSP either.
</para>
</section>
@@ -25,7 +25,7 @@
<term><varname>process</varname></term>
<listitem>
<para>
- Changed to <varname>execute</varname> in &VERSION;.
+ Changed to <varname>execute</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -115,7 +115,7 @@
<term><varname>reRender</varname></term>
<listitem>
<para>
- Changed to <varname>render</varname> in &VERSION;.
+ Changed to <varname>render</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -211,7 +211,7 @@
<term><varname>eventsQueue</varname></term>
<listitem>
<para>
- Changed to <varname>queue</varname> in &VERSION;.
+ Changed to <varname>queue</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -304,7 +304,7 @@
<term><varname>limitToList</varname></term>
<listitem>
<para>
- Changed to <varname>limitRender</varname> in &VERSION;.
+ Changed to <varname>limitRender</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -400,7 +400,7 @@
<term><varname>onbeforedomupdate</varname></term>
<listitem>
<para>
- Changed to <varname>onsuccess</varname> in &VERSION;.
+ Changed to <varname>onsuccess</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -458,7 +458,7 @@
<term><varname>ignoreDupResponses</varname></term>
<listitem>
<para>
- Deprecated. Functionality moved to <varname>queue</varname> in &VERSION;.
+ Deprecated. Functionality moved to <varname>queue</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -557,7 +557,7 @@
<term><varname>requestDelay</varname></term>
<listitem>
<para>
- Deprecated. Functionality moved to <varname>queue</varname> in &VERSION;.
+ Deprecated. Functionality moved to <varname>queue</varname> in 4.
</para>
<variablelist>
<varlistentry>
@@ -638,7 +638,7 @@
<term><varname>ajaxSingle</varname></term>
<listitem>
<para>
- Deprecated. Use <code>execute="@this"</code> in &VERSION; instead.
+ Deprecated. Use <code>execute="@this"</code> in 4 instead.
</para>
<variablelist>
<varlistentry>
@@ -779,7 +779,7 @@
<section id="sect-Migration_Guide-Changes_and_new_features-Feature_changes">
<title>Feature changes</title>
<para>
- Features have been altered or added to existing components and behaviors in the <productname>RichFaces</productname> &VERSION; framework. Refer to the <citetitle>Developer Guide</citetitle> for full details on how to make use of any new features.
+ Features have been altered or added to existing components and behaviors in the <productname>RichFaces</productname> 4 framework. Refer to the <citetitle>Developer Guide</citetitle> for full details on how to make use of any new features.
</para>
<section id="sect-Migration_Guide-Feature_changes-Server_side_process_and_render_mechanisms">
<title>Server-side process and render mechanisms</title>
@@ -943,7 +943,7 @@
<section id="sect-Migration_Guide-Changes_and_new_features-Consolidated_or_renamed_components">
<title>Consolidated or renamed components</title>
<para>
- Several new components and behaviors have been added to <productname>RichFaces</productname> &VERSION;, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Component Reference</citetitle>.
+ Several new components and behaviors have been added to <productname>RichFaces</productname> 4, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Component Reference</citetitle>.
</para>
<section id="sect-Migration_Guide-Consolidated_or_renamed_components-richautocomplete">
@@ -960,6 +960,13 @@
</para>
</section>
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richcollapsiblePanel">
+ <title><sgmltag><rich:collapsiblePanel></sgmltag></title>
+ <para>
+ The <sgmltag><rich:collapsiblePanel></sgmltag> component replaces the old <sgmltag><rich:simpleTogglePanel></sgmltag> component.
+ </para>
+ </section>
+
<section id="sect-Migration_Guide-Consolidated_or_renamed_components-richextendedDataTable">
<title><sgmltag><rich:extendedDataTable></sgmltag></title>
<para>
@@ -999,7 +1006,7 @@
<section id="sect-Migration_Guide-Changes_and_new_features-New_components_and_behaviors">
<title>New components and behaviors</title>
<para>
- Several new components and behaviors have been added to <productname>RichFaces</productname> &VERSION;, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Developer Guide</citetitle>.
+ Several new components and behaviors have been added to <productname>RichFaces</productname> 4, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Developer Guide</citetitle>.
</para>
<section id="sect-Migration_Guide-New_components_and_behaviors-richbusyBehavior">
@@ -1020,13 +1027,13 @@
<section id="sect-Migration_Guide-Changes_and_new_features-Deprecated_components_and_behaviors">
<title>Deprecated components and behaviors</title>
<para>
- Some components and behaviors have been deprecated in <productname>RichFaces</productname> &VERSION;. For the most part these items have their functionality replicated by another component or behavior. Refer to <xref linkend="sect-Migration_Guide-Changes_and_new_features-Consolidated_or_renamed_components" /> for further details on consolidated functionality.
+ Some components and behaviors have been deprecated in <productname>RichFaces</productname> 4. For the most part these items have their functionality replicated by another component or behavior. Refer to <xref linkend="sect-Migration_Guide-Changes_and_new_features-Consolidated_or_renamed_components" /> for further details on consolidated functionality.
</para>
<section id="sect-Migration_Guide-Deprecated_components_and_behaviors-a4jpage">
<title><sgmltag><a4j:page></sgmltag></title>
<para>
- <productname>RichFaces</productname> &VERSION; drops support for the <sgmltag><a4j:page></sgmltag> component. The component was previously used for solving incompatibility in the JavaServer Pages (<acronym>JSP</acronym>) environment with Apache MyFaces in early Ajax4jsf versions.
+ <productname>RichFaces</productname> 4 drops support for the <sgmltag><a4j:page></sgmltag> component. The component was previously used for solving incompatibility in the JavaServer Pages (<acronym>JSP</acronym>) environment with Apache MyFaces in early Ajax4jsf versions.
</para>
</section>
@@ -1037,6 +1044,13 @@
</para>
</section>
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richdataList_richdataDefinitionList_and_richdataOrderedList">
+ <title><sgmltag><rich:dataList></sgmltag>, <sgmltag><rich:dataDefinitionList></sgmltag>, and <sgmltag><rich:dataOrderedList></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:dataList></sgmltag>, <sgmltag><rich:dataDefinitionList></sgmltag>, and <sgmltag><rich:dataOrderedList></sgmltag> components is now available through the <sgmltag><rich:list></sgmltag> component.
+ </para>
+ </section>
+
<section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richmodalPanel">
<title><sgmltag><rich:modalPanel></sgmltag></title>
<para>
@@ -1058,6 +1072,13 @@
</para>
</section>
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richsimpleTogglePanel">
+ <title><sgmltag><rich:simpleTogglePanel></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:simpleTogglePanel></sgmltag> component is now available through the <sgmltag><rich:collapsiblePanel></sgmltag> component.
+ </para>
+ </section>
+
</section>
</chapter>
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19219 - in branches/RF-8742/ui/validator: api/src/main/java/org/richfaces/validator and 11 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2010-09-15 19:43:35 -0400 (Wed, 15 Sep 2010)
New Revision: 19219
Added:
branches/RF-8742/ui/validator/api/src/main/java/org/richfaces/validator/ClientScript.java
branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/
branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorBehavior.java
branches/RF-8742/ui/validator/ui/src/test/config/
branches/RF-8742/ui/validator/ui/src/test/config/mocks.…
[View More]xml
branches/RF-8742/ui/validator/ui/src/test/java/org/
branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/
branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/
branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/behavior/
branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/behavior/ClientValidatorBehaviorTest.java
Removed:
branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/ClientValidatorBehavior.java
branches/RF-8742/ui/validator/ui/src/test/java/ClientValidatorBehaviorTest.java
Modified:
branches/RF-8742/ui/validator/api/pom.xml
branches/RF-8742/ui/validator/impl/pom.xml
branches/RF-8742/ui/validator/ui/pom.xml
Log:
CODING IN PROGRESS - issue RF-9219: CSV: development tests for server side(junit)
https://jira.jboss.org/browse/RF-9219
Modified: branches/RF-8742/ui/validator/api/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/api/pom.xml 2010-09-15 16:10:55 UTC (rev 19218)
+++ branches/RF-8742/ui/validator/api/pom.xml 2010-09-15 23:43:35 UTC (rev 19219)
@@ -58,6 +58,12 @@
<version>1.0.0.GA</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <version>1.0.5-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<scm>
Added: branches/RF-8742/ui/validator/api/src/main/java/org/richfaces/validator/ClientScript.java
===================================================================
--- branches/RF-8742/ui/validator/api/src/main/java/org/richfaces/validator/ClientScript.java (rev 0)
+++ branches/RF-8742/ui/validator/api/src/main/java/org/richfaces/validator/ClientScript.java 2010-09-15 23:43:35 UTC (rev 19219)
@@ -0,0 +1,39 @@
+/*
+ * $Id$
+ * 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.validator;
+
+/**
+ * <p class="changed_added_4_0">This class contains information about JavaScript associated with JSF object ( converter or validator )</p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public interface ClientScript {
+
+ String getLibrary();
+
+ String getResourceName();
+
+ String getFunctionName();
+
+}
Property changes on: branches/RF-8742/ui/validator/api/src/main/java/org/richfaces/validator/ClientScript.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: branches/RF-8742/ui/validator/impl/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/impl/pom.xml 2010-09-15 16:10:55 UTC (rev 19218)
+++ branches/RF-8742/ui/validator/impl/pom.xml 2010-09-15 23:43:35 UTC (rev 19219)
@@ -71,6 +71,12 @@
<version>4.0.0.GA</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <version>1.0.5-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<scm>
Modified: branches/RF-8742/ui/validator/ui/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/ui/pom.xml 2010-09-15 16:10:55 UTC (rev 19218)
+++ branches/RF-8742/ui/validator/ui/pom.xml 2010-09-15 23:43:35 UTC (rev 19219)
@@ -43,6 +43,21 @@
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>maven-mockgenerator-plugin</artifactId>
+ <version>1.0.5-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>generateTestMocks</id>
+ <goals>
+ <goal>generate-test-mock</goal>
+ </goals>
+ <configuration>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
@@ -56,18 +71,25 @@
<groupId>org.richfaces.ui.common</groupId>
<artifactId>richfaces-ui-common-ui</artifactId>
</dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <version>1.0.0.GA</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>4.0.0.GA</version>
- <scope>test</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <version>1.0.0.GA</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <version>1.0.5-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
<scm>
Deleted: branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/ClientValidatorBehavior.java
===================================================================
--- branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/ClientValidatorBehavior.java 2010-09-15 16:10:55 UTC (rev 19218)
+++ branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/ClientValidatorBehavior.java 2010-09-15 23:43:35 UTC (rev 19219)
@@ -1,34 +0,0 @@
-/*
- * $Id$
- * 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.component;
-
-import javax.faces.component.behavior.ClientBehaviorBase;
-
-/**
- * <p class="changed_added_4_0"></p>
- * @author asmirnov(a)exadel.com
- *
- */
-public class ClientValidatorBehavior extends ClientBehaviorBase {
-
-}
Copied: branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorBehavior.java (from rev 19206, branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/ClientValidatorBehavior.java)
===================================================================
--- branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorBehavior.java (rev 0)
+++ branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorBehavior.java 2010-09-15 23:43:35 UTC (rev 19219)
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ * 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.component.behavior;
+
+import java.util.Collection;
+
+import javax.faces.FacesException;
+import javax.faces.component.EditableValueHolder;
+import javax.faces.component.UIMessage;
+import javax.faces.component.behavior.ClientBehaviorBase;
+import javax.faces.component.behavior.ClientBehaviorContext;
+
+/**
+ * <p class="changed_added_4_0"></p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public class ClientValidatorBehavior extends ClientBehaviorBase {
+
+ @Override
+ public String getScript(ClientBehaviorContext behaviorContext) {
+ if (!(behaviorContext.getComponent() instanceof EditableValueHolder)) {
+ throw new FacesException("Invalid target for client-side validator behavior");
+ }
+ return super.getScript(behaviorContext);
+ }
+ /**
+ * <p class="changed_added_4_0">This method looks up all {@link UIMessage} components associated with input for which this behavior belongs to</p>
+ * @param context
+ * @return non-null collection of {@link UIMessage} components associated with terget input.
+ */
+// public Collection<UIMessage> findMessages(ClientBehaviorContext context) {
+//
+// }
+}
Property changes on: branches/RF-8742/ui/validator/ui/src/main/java/org/richfaces/component/behavior/ClientValidatorBehavior.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/ui/validator/ui/src/test/config/mocks.xml
===================================================================
--- branches/RF-8742/ui/validator/ui/src/test/config/mocks.xml (rev 0)
+++ branches/RF-8742/ui/validator/ui/src/test/config/mocks.xml 2010-09-15 23:43:35 UTC (rev 19219)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mock-config>
+ <class-prefix>Mock</class-prefix>
+ <package>org.richfaces.component.mock</package>
+ <mock-controller>org.richfaces.component.mock.FacesTestMockController</mock-controller>
+ <mock>
+ <name>org.richfaces.component.mock.MockUIForm</name>
+ <class-name>javax.faces.component.UIForm</class-name>
+ </mock>
+ <mock>
+ <name>org.richfaces.component.mock.MockUIMessage</name>
+ <class-name>javax.faces.component.UIMessage</class-name>
+ </mock>
+
+</mock-config>
\ No newline at end of file
Property changes on: branches/RF-8742/ui/validator/ui/src/test/config/mocks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: branches/RF-8742/ui/validator/ui/src/test/java/ClientValidatorBehaviorTest.java
===================================================================
--- branches/RF-8742/ui/validator/ui/src/test/java/ClientValidatorBehaviorTest.java 2010-09-15 16:10:55 UTC (rev 19218)
+++ branches/RF-8742/ui/validator/ui/src/test/java/ClientValidatorBehaviorTest.java 2010-09-15 23:43:35 UTC (rev 19219)
@@ -1,112 +0,0 @@
-import static org.easymock.EasyMock.*;
-import static org.junit.Assert.*;
-
-import javax.faces.FacesException;
-import javax.faces.component.UIComponent;
-import javax.faces.component.UIInput;
-import javax.faces.component.UIOutput;
-import javax.faces.component.behavior.ClientBehaviorContext;
-
-import org.jboss.test.faces.mock.Environment;
-import org.jboss.test.faces.mock.Mock;
-import org.jboss.test.faces.mock.MockController;
-import org.jboss.test.faces.mock.MockFacesEnvironment;
-import org.jboss.test.faces.mock.MockTestRunner;
-import org.jboss.test.faces.mock.Stub;
-import org.jboss.test.faces.mock.Environment.Feature;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.richfaces.component.ClientValidatorBehavior;
-
-
-/**
- * <p class="changed_added_4_0">This class tests client validator behavior.
- * as it described at https://community.jboss.org/wiki/ClientSideValidation # Server-side rendering algorithm</p>
- * @author asmirnov(a)exadel.com
- *
- */
-(a)RunWith(MockTestRunner.class)
-public class ClientValidatorBehaviorTest {
-
- @Mock()
- @Environment({Feature.APPLICATION})
- protected MockFacesEnvironment environment;
-
- @Stub
- private UIOutput output;
-
- @Mock
- protected UIInput input;
-
- @Mock
- private ClientBehaviorContext behaviorContext;
-
- protected MockController controller;
-
- /**
- * <p class="changed_added_4_0">Server-side rendering algorithm .1</p>
- */
- @Test(expected=FacesException.class)
- public void testGetScriptForIllegalComponent() {
- getScript(output);
- }
-
- /**
- * <p class="changed_added_4_0">Server-side rendering algorithm .2</p>
- * @throws Exception
- */
- @Test
- public void testGetScriptWithoutMessageComponent() throws Exception {
-
- }
-
- /**
- * <p class="changed_added_4_0">Server-side rendering algorithm .3 - determine client-side converter</p>
- * @throws Exception
- */
- @Test
- public void testGetClientConverter() throws Exception {
-
- }
- /**
- * <p class="changed_added_4_0">Server-side rendering algorithm .3</p>
- * @throws Exception
- */
- @Test
- public void testGetScriptWithoutClientConverter() throws Exception {
-
- }
-
- /**
- * <p class="changed_added_4_0">Server-side rendering algorithm .3</p>
- * @throws Exception
- */
- @Test
- public void testGetScriptWithClientConverter() throws Exception {
-
- }
-
- private String getScript(UIComponent component) {
- ClientValidatorBehavior behavior = createBehavior();
- controller.replay();
- String script = behavior.getScript(setupBehaviorContext(component));
- controller.verify();
- return script;
- }
-
- private ClientBehaviorContext setupBehaviorContext(UIComponent component) {
- expect(behaviorContext.getComponent()).andStubReturn(component);
- expect(behaviorContext.getFacesContext()).andStubReturn(environment.getFacesContext());
- return behaviorContext;
- }
-
- private ClientValidatorBehavior createBehavior() {
- return new ClientValidatorBehavior();
- }
-
- @Test
- public void testDecode() {
- fail("Not yet implemented");
- }
-
-}
Copied: branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/behavior/ClientValidatorBehaviorTest.java (from rev 19208, branches/RF-8742/ui/validator/ui/src/test/java/ClientValidatorBehaviorTest.java)
===================================================================
--- branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/behavior/ClientValidatorBehaviorTest.java (rev 0)
+++ branches/RF-8742/ui/validator/ui/src/test/java/org/richfaces/component/behavior/ClientValidatorBehaviorTest.java 2010-09-15 23:43:35 UTC (rev 19219)
@@ -0,0 +1,180 @@
+package org.richfaces.component.behavior;
+import static org.easymock.EasyMock.*;
+import static org.junit.Assert.*;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
+import javax.faces.component.UIInput;
+import javax.faces.component.UIOutput;
+import javax.faces.component.UIViewRoot;
+import javax.faces.component.behavior.ClientBehaviorContext;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import org.jboss.test.faces.mock.Environment;
+import org.jboss.test.faces.mock.Mock;
+import org.jboss.test.faces.mock.MockController;
+import org.jboss.test.faces.mock.MockFacesEnvironment;
+import org.jboss.test.faces.mock.MockTestRunner;
+import org.jboss.test.faces.mock.Stub;
+import org.jboss.test.faces.mock.Environment.Feature;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.richfaces.component.behavior.ClientValidatorBehavior;
+import org.richfaces.component.mock.MockUIForm;
+import org.richfaces.component.mock.MockUIMessage;
+
+
+/**
+ * <p class="changed_added_4_0">This class tests client validator behavior.
+ * as it described at https://community.jboss.org/wiki/ClientSideValidation # Server-side rendering algorithm</p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+(a)RunWith(MockTestRunner.class)
+public class ClientValidatorBehaviorTest {
+
+ private static final String CLIENT_VALIDATION_FUNCTION = "rf.csv.v";
+
+ private final class DummyConverter implements Converter {
+ public String getAsString(FacesContext context, UIComponent component, Object value) {
+ return value.toString();
+ }
+
+ public Object getAsObject(FacesContext context, UIComponent component, String value) {
+ return value;
+ }
+ }
+
+ private static final String FORM_ID = "formId";
+
+ private static final String INPUT_ID = "inputId";
+
+ private static final String MESSAGE_ID = "messageId";
+
+ @Mock()
+ @Environment({Feature.APPLICATION})
+ protected MockFacesEnvironment environment;
+
+ @Stub
+ private UIOutput output;
+
+ @Mock
+ protected UIInput input;
+
+ @Mock
+ protected UIViewRoot root;
+
+ @Mock
+ protected MockUIForm form;
+
+ @Mock
+ protected MockUIMessage message;
+
+ @Mock
+ private ClientBehaviorContext behaviorContext;
+
+ protected MockController controller;
+
+ private ClientValidatorBehavior behavior;
+
+ @Before
+ public void setUp() {
+ behavior = createBehavior();
+ }
+
+ /**
+ * <p class="changed_added_4_0">Server-side rendering algorithm .1</p>
+ */
+ @Test(expected=FacesException.class)
+ public void testGetScriptForIllegalComponent() {
+ getScript(output);
+ }
+
+ /**
+ * <p class="changed_added_4_0">Server-side rendering algorithm .2</p>
+ * @throws Exception
+ */
+ @Test
+ public void testGetScriptWithoutMessageComponent() throws Exception {
+ buildForm(false);
+ assertEquals(0, getScript(input).length());
+ }
+
+ /**
+ * <p class="changed_added_4_0">Server-side rendering algorithm .3 - determine client-side converter</p>
+ * @throws Exception
+ */
+ @Test
+ public void testGetClientConverter() throws Exception {
+
+ }
+ /**
+ * <p class="changed_added_4_0">Server-side rendering algorithm .3</p>
+ * @throws Exception
+ */
+ @Test
+ public void testGetScriptWithoutClientConverter() throws Exception {
+ buildForm(true);
+ expect(input.getConverter()).andStubReturn(new DummyConverter());
+ String script = getScript(input);// ajax-only validator.
+ assertFalse(script.contains(CLIENT_VALIDATION_FUNCTION));
+ }
+
+ /**
+ * <p class="changed_added_4_0">Server-side rendering algorithm .3</p>
+ * @throws Exception
+ */
+ @Test
+ public void testGetScriptWithClientConverter() throws Exception {
+
+ }
+
+ private String getScript(UIComponent component) {
+ ClientBehaviorContext clientBehaviorContext = setupBehaviorContext(component);
+ controller.replay();
+ String script = behavior.getScript(clientBehaviorContext);
+ controller.verify();
+ return script;
+ }
+
+ private ClientBehaviorContext setupBehaviorContext(UIComponent component) {
+ expect(behaviorContext.getComponent()).andStubReturn(component);
+ expect(behaviorContext.getFacesContext()).andStubReturn(environment.getFacesContext());
+ return behaviorContext;
+ }
+
+ private void buildForm(boolean withMessage) {
+ expect(environment.getFacesContext().getViewRoot()).andStubReturn(root);
+ expect(form.getId()).andStubReturn(FORM_ID);
+ List<UIComponent> formChildren = new ArrayList<UIComponent>();
+ expect(form.getChildren()).andStubReturn(formChildren);
+ expect(input.getId()).andStubReturn(INPUT_ID);
+ expect(input.getParent()).andStubReturn(form);
+ formChildren.add(input);
+ expect(output.getParent()).andStubReturn(form);
+ formChildren.add(output);
+ if(withMessage){
+ expect(message.getId()).andStubReturn(MESSAGE_ID);
+ expect(message.getFor()).andStubReturn(INPUT_ID);
+ expect(message.getParent()).andStubReturn(form);
+ formChildren.add(message);
+ }
+// root.getChildren().add(form);
+ }
+
+ private ClientValidatorBehavior createBehavior() {
+ return new ClientValidatorBehavior();
+ }
+
+ @Test
+ public void testDecode() {
+ fail("Not yet implemented");
+ }
+
+}
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19218 - modules/tests/metamer/trunk/application/src/main/webapp/components/richAccordion.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-09-15 12:10:55 -0400 (Wed, 15 Sep 2010)
New Revision: 19218
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richAccordion/simple.xhtml
Log:
* added component's ID to page for testing JavaScript API
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richAccordion/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/…
[View More]webapp/components/richAccordion/simple.xhtml 2010-09-15 15:17:25 UTC (rev 19217)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richAccordion/simple.xhtml 2010-09-15 16:10:55 UTC (rev 19218)
@@ -105,6 +105,10 @@
<fieldset>
<legend>JavaScript API</legend>
+ <script type="text/javascript">
+ testedComponentId = "#{rich:clientId('accordion')}";
+ </script>
+
<h:commandButton id="switchButton1" value="switch to item1">
<rich:componentControl id="componentControl1" event="click" operation="switchToItem" target="accordion" >
<f:param value="item1" />
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19217 - modules/tests/metamer/trunk/application/src/main/webapp/templates.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-09-15 11:17:25 -0400 (Wed, 15 Sep 2010)
New Revision: 19217
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml
Log:
* templates selector fixed
Modified: modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml 2010-09-15 13:20:36 UTC (rev …
[View More]19216)
+++ modules/tests/metamer/trunk/application/src/main/webapp/templates/header.xhtml 2010-09-15 15:17:25 UTC (rev 19217)
@@ -97,7 +97,7 @@
style="width: 150px;">
<f:selectItems value="#{templateBean.availableTemplates}" />
<f:converter converterId="templateNameConverter" />
- <a4j:ajax event="change" render="headerTable" />
+ <a4j:ajax event="change" render="templatesForm" />
</h:selectOneMenu>
<br />
</ui:repeat>
[View Less]
14 years, 4 months
JBoss Rich Faces SVN: r19216 - in modules/tests/metamer/trunk/application/src/main: resources/org/richfaces/tests/metamer/bean and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-09-15 09:20:36 -0400 (Wed, 15 Sep 2010)
New Revision: 19216
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.properties
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/
modules/tests/metamer/trunk/application/src/…
[View More]main/webapp/components/richCollapsiblePanel/facets.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/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-9261
* two pages for rich:collapsiblePanel added
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-09-15 13:07:19 UTC (rev 19215)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-09-15 13:20:36 UTC (rev 19216)
@@ -111,6 +111,7 @@
components.put("richAccordion", "Rich Accordion");
components.put("richAccordionItem", "Rich Accordion Item");
components.put("richAutocomplete", "Rich Autocomplete");
+ components.put("richCollapsiblePanel", "Rich Collapsible Panel");
components.put("richColumn", "Rich Column");
components.put("richColumnGroup", "Rich Column Group");
components.put("richComponentControl", "Rich Component Control");
Added: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java 2010-09-15 13:20:36 UTC (rev 19216)
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * 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.ViewScoped;
+import org.richfaces.component.UICollapsiblePanel;
+
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:collapsiblePanel.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richCollapsiblePanelBean")
+@ViewScoped
+public class RichCollapsiblePanelBean 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(UICollapsiblePanel.class, getClass());
+
+ attributes.setAttribute("rendered", true);
+ attributes.setAttribute("header", "collapsible panel header");
+
+ // TODO has to be tested in another way
+ attributes.remove("changeExpandListener");
+ attributes.remove("converter");
+
+ // hidden attributes
+ attributes.remove("changeExpandListeners");
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+}
Added: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.properties
===================================================================
--- modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.properties (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.properties 2010-09-15 13:20:36 UTC (rev 19216)
@@ -0,0 +1,4 @@
+attr.switchType.client=client
+attr.switchType.server=server
+attr.switchType.ajax=ajax
+attr.switchType.none=
\ No newline at end of file
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/facets.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/facets.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/facets.xhtml 2010-09-15 13:20:36 UTC (rev 19216)
@@ -0,0 +1,106 @@
+<!--
+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.
+-->
+
+<!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: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">
+
+ <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">
+ #{nonexistingbean.aaa}
+
+ <rich:collapsiblePanel id="collapsiblePanel"
+ bodyClass="#{richCollapsiblePanelBean.attributes['bodyClass'].value}"
+ bypassUpdates="#{richCollapsiblePanelBean.attributes['bypassUpdates'].value}"
+ data="#{richCollapsiblePanelBean.attributes['data'].value}"
+ dir="#{richCollapsiblePanelBean.attributes['dir'].value}"
+ execute="#{richCollapsiblePanelBean.attributes['execute'].value}"
+ expanded="#{richCollapsiblePanelBean.attributes['expanded'].value}"
+ header="#{richCollapsiblePanelBean.attributes['header'].value}"
+ headerClass="#{richCollapsiblePanelBean.attributes['headerClass'].value}"
+ headerControlClass="#{richCollapsiblePanelBean.attributes['headerControlClass'].value}"
+ immediate="#{richCollapsiblePanelBean.attributes['immediate'].value}"
+ itemChangeListener="#{richCollapsiblePanelBean.attributes['itemChangeListener'].value}"
+ lang="#{richCollapsiblePanelBean.attributes['lang'].value}"
+ limitToList="#{richCollapsiblePanelBean.attributes['limitToList'].value}"
+ onbeforedomupdate="#{richCollapsiblePanelBean.attributes['onbeforedomupdate'].value}"
+ onbeforeitemchange="#{richCollapsiblePanelBean.attributes['onbeforeitemchange'].value}"
+ onbeforeswitch="#{richCollapsiblePanelBean.attributes['onbeforeswitch'].value}"
+ onclick="#{richCollapsiblePanelBean.attributes['onclick'].value}"
+ oncomplete="#{richCollapsiblePanelBean.attributes['oncomplete'].value}"
+ ondblclick="#{richCollapsiblePanelBean.attributes['ondblclick'].value}"
+ onitemchange="#{richCollapsiblePanelBean.attributes['onitemchange'].value}"
+ onmousedown="#{richCollapsiblePanelBean.attributes['onmousedown'].value}"
+ onmousemove="#{richCollapsiblePanelBean.attributes['onmousemove'].value}"
+ onmouseout="#{richCollapsiblePanelBean.attributes['onmouseout'].value}"
+ onmouseover="#{richCollapsiblePanelBean.attributes['onmouseover'].value}"
+ onmouseup="#{richCollapsiblePanelBean.attributes['onmouseup'].value}"
+ onswitch="#{richCollapsiblePanelBean.attributes['onswitch'].value}"
+ render="#{richCollapsiblePanelBean.attributes['render'].value}"
+ rendered="#{richCollapsiblePanelBean.attributes['rendered'].value}"
+ status="#{richCollapsiblePanelBean.attributes['status'].value}"
+ style="#{richCollapsiblePanelBean.attributes['style'].value}"
+ styleClass="#{richCollapsiblePanelBean.attributes['styleClass'].value}"
+ switchType="#{richCollapsiblePanelBean.attributes['switchType'].value}"
+ title="#{richCollapsiblePanelBean.attributes['title'].value}"
+ >
+
+ <f:facet name="headerExpanded" >
+ header expanded
+ </f:facet>
+ <f:facet name="headerCollapsed" >
+ header collapsed
+ </f:facet>
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a neque turpis, at cursus nunc.
+ Vestibulum et tincidunt metus. Suspendisse viverra aliquet nunc, non placerat justo commodo a. Pellentesque
+ non lacus ut mi consectetur blandit nec sed orci. Praesent tempus aliquet sapien vitae condimentum. Aenean
+ nec ligula egestas erat convallis pharetra. Donec venenatis nunc vitae justo posuere laoreet. Vestibulum
+ ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Suspendisse quis convallis nulla.
+ Aenean lorem lorem, viverra eget elementum in, hendrerit sit amet felis. Curabitur venenatis lacus id diam
+ porttitor cursus. Suspendisse vulputate arcu at ante porttitor ullamcorper. Cras eleifend lacus eget justo
+ malesuada fermentum. Praesent pretium eleifend lacus, id dignissim lacus aliquam eu. Nulla imperdiet tempus
+ facilisis. Etiam nec aliquet quam. Duis fringilla ullamcorper libero, vel dictum quam feugiat a. Donec placerat
+ varius diam ullamcorper egestas. Donec molestie tellus a felis facilisis ac vestibulum risus rhoncus.
+
+ </rich:collapsiblePanel>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richCollapsiblePanelBean.attributes}" id="attributes"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/list.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/list.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/list.xhtml 2010-09-15 13:20:36 UTC (rev 19216)
@@ -0,0 +1,45 @@
+<!--
+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.
+-->
+
+<!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">
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Collapsible Panel</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple" value="Simple">
+ Simple page that contains <b>rich:collapsiblePanel</b> and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="facets" outcome="facets" value="Facets">
+ Page for testing facets of <b>rich:collapsiblePanel</b>.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml 2010-09-15 13:20:36 UTC (rev 19216)
@@ -0,0 +1,99 @@
+<!--
+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.
+-->
+
+<!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: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">
+
+ <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">
+ #{nonexistingbean.aaa}
+
+ <rich:collapsiblePanel id="collapsiblePanel"
+ bodyClass="#{richCollapsiblePanelBean.attributes['bodyClass'].value}"
+ bypassUpdates="#{richCollapsiblePanelBean.attributes['bypassUpdates'].value}"
+ data="#{richCollapsiblePanelBean.attributes['data'].value}"
+ dir="#{richCollapsiblePanelBean.attributes['dir'].value}"
+ execute="#{richCollapsiblePanelBean.attributes['execute'].value}"
+ expanded="#{richCollapsiblePanelBean.attributes['expanded'].value}"
+ header="#{richCollapsiblePanelBean.attributes['header'].value}"
+ headerClass="#{richCollapsiblePanelBean.attributes['headerClass'].value}"
+ headerControlClass="#{richCollapsiblePanelBean.attributes['headerControlClass'].value}"
+ immediate="#{richCollapsiblePanelBean.attributes['immediate'].value}"
+ itemChangeListener="#{richCollapsiblePanelBean.attributes['itemChangeListener'].value}"
+ lang="#{richCollapsiblePanelBean.attributes['lang'].value}"
+ limitToList="#{richCollapsiblePanelBean.attributes['limitToList'].value}"
+ onbeforedomupdate="#{richCollapsiblePanelBean.attributes['onbeforedomupdate'].value}"
+ onbeforeitemchange="#{richCollapsiblePanelBean.attributes['onbeforeitemchange'].value}"
+ onbeforeswitch="#{richCollapsiblePanelBean.attributes['onbeforeswitch'].value}"
+ onclick="#{richCollapsiblePanelBean.attributes['onclick'].value}"
+ oncomplete="#{richCollapsiblePanelBean.attributes['oncomplete'].value}"
+ ondblclick="#{richCollapsiblePanelBean.attributes['ondblclick'].value}"
+ onitemchange="#{richCollapsiblePanelBean.attributes['onitemchange'].value}"
+ onmousedown="#{richCollapsiblePanelBean.attributes['onmousedown'].value}"
+ onmousemove="#{richCollapsiblePanelBean.attributes['onmousemove'].value}"
+ onmouseout="#{richCollapsiblePanelBean.attributes['onmouseout'].value}"
+ onmouseover="#{richCollapsiblePanelBean.attributes['onmouseover'].value}"
+ onmouseup="#{richCollapsiblePanelBean.attributes['onmouseup'].value}"
+ onswitch="#{richCollapsiblePanelBean.attributes['onswitch'].value}"
+ render="#{richCollapsiblePanelBean.attributes['render'].value}"
+ rendered="#{richCollapsiblePanelBean.attributes['rendered'].value}"
+ status="#{richCollapsiblePanelBean.attributes['status'].value}"
+ style="#{richCollapsiblePanelBean.attributes['style'].value}"
+ styleClass="#{richCollapsiblePanelBean.attributes['styleClass'].value}"
+ switchType="#{richCollapsiblePanelBean.attributes['switchType'].value}"
+ title="#{richCollapsiblePanelBean.attributes['title'].value}"
+ >
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a neque turpis, at cursus nunc.
+ Vestibulum et tincidunt metus. Suspendisse viverra aliquet nunc, non placerat justo commodo a. Pellentesque
+ non lacus ut mi consectetur blandit nec sed orci. Praesent tempus aliquet sapien vitae condimentum. Aenean
+ nec ligula egestas erat convallis pharetra. Donec venenatis nunc vitae justo posuere laoreet. Vestibulum
+ ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Suspendisse quis convallis nulla.
+ Aenean lorem lorem, viverra eget elementum in, hendrerit sit amet felis. Curabitur venenatis lacus id diam
+ porttitor cursus. Suspendisse vulputate arcu at ante porttitor ullamcorper. Cras eleifend lacus eget justo
+ malesuada fermentum. Praesent pretium eleifend lacus, id dignissim lacus aliquam eu. Nulla imperdiet tempus
+ facilisis. Etiam nec aliquet quam. Duis fringilla ullamcorper libero, vel dictum quam feugiat a. Donec placerat
+ varius diam ullamcorper egestas. Donec molestie tellus a felis facilisis ac vestibulum risus rhoncus.
+
+ </rich:collapsiblePanel>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richCollapsiblePanelBean.attributes}" id="attributes"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
[View Less]
14 years, 4 months