Author: ppitonak(a)redhat.com
Date: 2011-01-14 10:35:34 -0500 (Fri, 14 Jan 2011)
New Revision: 21029
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSliderBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSlider/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml
Log:
* samples for spinner and slider fixed
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSliderBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSliderBean.java 2011-01-14
15:28:34 UTC (rev 21028)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSliderBean.java 2011-01-14
15:35:34 UTC (rev 21029)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -54,7 +54,7 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes =
Attributes.getComponentAttributesFromClass(HtmlInputNumberSlider.class, getClass());
+ attributes =
Attributes.getComponentAttributesFromFacesConfig(HtmlInputNumberSlider.class,
getClass());
attributes.setAttribute("enableManualInput", true);
attributes.setAttribute("inputSize", 3);
@@ -67,10 +67,8 @@
attributes.setAttribute("step", 1);
attributes.setAttribute("value", 2);
- attributes.remove("converter");
- attributes.remove("validator");
+ // will be tested in another way
attributes.remove("valueChangeListener");
- attributes.remove("valueChangeListeners");
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java 2011-01-14
15:28:34 UTC (rev 21028)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java 2011-01-14
15:35:34 UTC (rev 21029)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -64,7 +64,7 @@
attributes.setAttribute("step", 1);
attributes.setAttribute("value", 2);
- // TODO has to be tested in another way
+ // will be tested in another way
attributes.remove("valueChangeListener");
}
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSlider/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSlider/simple.xhtml 2011-01-14
15:28:34 UTC (rev 21028)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSlider/simple.xhtml 2011-01-14
15:35:34 UTC (rev 21029)
@@ -6,7 +6,7 @@
<!--
JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
@@ -42,7 +42,6 @@
<ui:define name="component">
<rich:inputNumberSlider id="slider"
accesskey="#{richInputNumberSliderBean.attributes['accesskey'].value}"
-
converterMessage="#{richInputNumberSliderBean.attributes['converterMessage'].value}"
decreaseClass="#{richInputNumberSliderBean.attributes['decreaseClass'].value}"
decreaseSelectedClass="#{richInputNumberSliderBean.attributes['decreaseSelectedClass'].value}"
delay="#{richInputNumberSliderBean.attributes['delay'].value}"
@@ -61,8 +60,6 @@
minValue="#{richInputNumberSliderBean.attributes['minValue'].value}"
onchange="#{richInputNumberSliderBean.attributes['onchange'].value}"
rendered="#{richInputNumberSliderBean.attributes['rendered'].value}"
-
required="#{richInputNumberSliderBean.attributes['required'].value}"
-
requiredMessage="#{richInputNumberSliderBean.attributes['requiredMessage'].value}"
showArrows="#{richInputNumberSliderBean.attributes['showArrows'].value}"
showBoundaryValues="#{richInputNumberSliderBean.attributes['showBoundaryValues'].value}"
showInput="#{richInputNumberSliderBean.attributes['showInput'].value}"
@@ -73,7 +70,6 @@
tabindex="#{richInputNumberSliderBean.attributes['tabindex'].value}"
tooltipClass="#{richInputNumberSliderBean.attributes['tooltipClass'].value}"
trackClass="#{richInputNumberSliderBean.attributes['trackClass'].value}"
-
validatorMessage="#{richInputNumberSliderBean.attributes['validatorMessage'].value}"
value="#{richInputNumberSliderBean.attributes['value'].value}"
valueChangeListener="#{richBean.valueChangeListener}"
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml 2011-01-14
15:28:34 UTC (rev 21028)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml 2011-01-14
15:35:34 UTC (rev 21029)
@@ -6,7 +6,7 @@
<!--
JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
@@ -48,6 +48,7 @@
cycled="#{richInputNumberSpinnerBean.attributes['cycled'].value}"
disabled="#{richInputNumberSpinnerBean.attributes['disabled'].value}"
enableManualInput="#{richInputNumberSpinnerBean.attributes['enableManualInput'].value}"
+
immediate="#{richInputNumberSpinnerBean.attributes['immediate'].value}"
inputClass="#{richInputNumberSpinnerBean.attributes['inputClass'].value}"
inputSize="#{richInputNumberSpinnerBean.attributes['inputSize'].value}"
maxValue="#{richInputNumberSpinnerBean.attributes['maxValue'].value}"