Author: konstantin.mishin
Date: 2010-09-21 07:28:55 -0400 (Tue, 21 Sep 2010)
New Revision: 19273
Modified:
branches/RF-9151/examples/input-demo/src/main/java/org/richfaces/demo/InputNumberSliderBean.java
branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml
Log:
RF-9200
Modified:
branches/RF-9151/examples/input-demo/src/main/java/org/richfaces/demo/InputNumberSliderBean.java
===================================================================
---
branches/RF-9151/examples/input-demo/src/main/java/org/richfaces/demo/InputNumberSliderBean.java 2010-09-21
11:26:44 UTC (rev 19272)
+++
branches/RF-9151/examples/input-demo/src/main/java/org/richfaces/demo/InputNumberSliderBean.java 2010-09-21
11:28:55 UTC (rev 19273)
@@ -21,6 +21,8 @@
*/
package org.richfaces.demo;
+import java.util.Date;
+
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@@ -160,4 +162,8 @@
public int getInputSize() {
return inputSize;
}
+
+ public Date getDate() {
+ return new Date();
+ }
}
Modified: branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml
===================================================================
---
branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml 2010-09-21
11:26:44 UTC (rev 19272)
+++
branches/RF-9151/examples/input-demo/src/main/webapp/inputNumberSpinner.xhtml 2010-09-21
11:28:55 UTC (rev 19273)
@@ -39,12 +39,17 @@
<f:selectItems value="#{skinBean.skins}"/>
</h:selectOneMenu>
<br />
+ <h:outputText value="Date: "/>
+ <h:outputText id="date" value="#{inputNumberSliderBean.date}"
/>
+ <br />
<ins:inputNumberSpinner id="ins"
value="#{inputNumberSliderBean.value}"
accesskey="#{inputNumberSliderBean.accesskey}"
cycled="#{inputNumberSliderBean.showInput}"
- disabled="#{inputNumberSliderBean.disabled}"
enableManualInput="#{inputNumberSliderBean.enableManualInput}"
+ disableBrowserAutoComplete="#{inputNumberSliderBean.showArrows}"
disabled="#{inputNumberSliderBean.disabled}"
enableManualInput="#{inputNumberSliderBean.enableManualInput}"
inputSize="#{inputNumberSliderBean.inputSize}"
maxValue="#{inputNumberSliderBean.maxValue}"
minValue="#{inputNumberSliderBean.minValue}"
- step="#{inputNumberSliderBean.step}" />
+ step="#{inputNumberSliderBean.step}">
+ <f:ajax render="date" />
+ </ins:inputNumberSpinner>
<br />
- <h:outputText value="Accesskey: "/>
+ <h:outputText value="Accesskey: " />
<h:inputText value="#{inputNumberSliderBean.accesskey}">
<f:ajax render="ins"/>
</h:inputText>
@@ -54,7 +59,12 @@
<f:ajax render="ins"/>
</h:selectBooleanCheckbox>
<br />
- <h:outputText value="Disabled "/>
+ <h:outputText value="DisableBrowserAutoComplete: "/>
+ <h:selectBooleanCheckbox value="#{inputNumberSliderBean.showArrows}">
+ <f:ajax render="ins"/>
+ </h:selectBooleanCheckbox>
+ <br />
+ <h:outputText value="Disabled: "/>
<h:selectBooleanCheckbox value="#{inputNumberSliderBean.disabled}">
<f:ajax render="ins"/>
</h:selectBooleanCheckbox>