Author: ppitonak(a)redhat.com
Date: 2010-12-02 11:33:17 -0500 (Thu, 02 Dec 2010)
New Revision: 20313
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-857
* slider sample fixed
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 2010-12-02
16:17:46 UTC (rev 20312)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java 2010-12-02
16:33:17 UTC (rev 20313)
@@ -54,17 +54,17 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getUIComponentAttributes(HtmlInputNumberSpinner.class,
getClass());
+ attributes = Attributes.getUIComponentAttributes(HtmlInputNumberSpinner.class,
getClass(), false);
attributes.setAttribute("enableManualInput", true);
attributes.setAttribute("maxValue", 10);
attributes.setAttribute("minValue", -10);
attributes.setAttribute("rendered", true);
+ attributes.get("rendered").setType(boolean.class);
attributes.setAttribute("step", 1);
attributes.setAttribute("value", 2);
// TODO has to be tested in another way
- attributes.remove("validator");
attributes.remove("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 2010-12-02
16:17:46 UTC (rev 20312)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml 2010-12-02
16:33:17 UTC (rev 20313)
@@ -45,16 +45,11 @@
<ui:define name="component">
<rich:inputNumberSpinner id="spinner"
accesskey="#{richInputNumberSpinnerBean.attributes['accesskey'].value}"
-
converter="#{richInputNumberSpinnerBean.attributes['converter'].value}"
-
converterMessage="#{richInputNumberSpinnerBean.attributes['converterMessage'].value}"
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}"
-
localValue="#{richInputNumberSpinnerBean.attributes['localValue'].value}"
-
localValueSet="#{richInputNumberSpinnerBean.attributes['localValueSet'].value}"
maxValue="#{richInputNumberSpinnerBean.attributes['maxValue'].value}"
minValue="#{richInputNumberSpinnerBean.attributes['minValue'].value}"
onblur="#{richInputNumberSpinnerBean.attributes['onblur'].value}"
@@ -81,18 +76,13 @@
onselect="#{richInputNumberSpinnerBean.attributes['onselect'].value}"
onupclick="#{richInputNumberSpinnerBean.attributes['onupclick'].value}"
rendered="#{richInputNumberSpinnerBean.attributes['rendered'].value}"
-
required="#{richInputNumberSpinnerBean.attributes['required'].value}"
-
requiredMessage="#{richInputNumberSpinnerBean.attributes['requiredMessage'].value}"
step="#{richInputNumberSpinnerBean.attributes['step'].value}"
style="#{richInputNumberSpinnerBean.attributes['style'].value}"
styleClass="#{richInputNumberSpinnerBean.attributes['styleClass'].value}"
-
submittedValue="#{richInputNumberSpinnerBean.attributes['submittedValue'].value}"
tabindex="#{richInputNumberSpinnerBean.attributes['tabindex'].value}"
-
valid="#{richInputNumberSpinnerBean.attributes['valid'].value}"
-
validatorMessage="#{richInputNumberSpinnerBean.attributes['validatorMessage'].value}"
-
validators="#{richInputNumberSpinnerBean.attributes['validators'].value}"
value="#{richInputNumberSpinnerBean.attributes['value'].value}"
-
valueChangeListeners="#{richInputNumberSpinnerBean.attributes['valueChangeListeners'].value}">
+
valueChangeListener="#{richBean.valueChangeListener}"
+ >
<a4j:ajax render="output"
action="#{richBean.dummyAction}"
actionListener="#{richBean.dummyActionListener}" />