Author: pyaschenko
Date: 2008-03-19 08:46:22 -0400 (Wed, 19 Mar 2008)
New Revision: 6943
Modified:
trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java
trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp
trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
Log:
RF-2473
Modified: trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java 2008-03-19
12:22:01 UTC (rev 6942)
+++ trunk/samples/inputNumberSliderDemo/src/main/java/org/richfaces/Bean.java 2008-03-19
12:46:22 UTC (rev 6943)
@@ -28,8 +28,17 @@
private boolean showBoundaryValues = true;
private boolean showInput = true;
private boolean disabled = false;
+ private boolean manualInput = true;
- public int getValue() {
+ public boolean isManualInput() {
+ return manualInput;
+ }
+
+ public void setManualInput(boolean manualInput) {
+ this.manualInput = manualInput;
+ }
+
+ public int getValue() {
return value;
}
Modified: trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp 2008-03-19
12:22:01 UTC (rev 6942)
+++ trunk/samples/inputNumberSliderDemo/src/main/webapp/pages/index.jsp 2008-03-19
12:46:22 UTC (rev 6943)
@@ -83,14 +83,23 @@
</f:verbatim>
<rich:inputNumberSlider id="SliderId" inputPosition="left"
showInput="#{bean.showInput}"
showBoundaryValues="#{bean.showBoundaryValues}"
- showToolTip="true"
disabled="#{bean.disabled}"
+ showToolTip="true"
disabled="#{bean.disabled}" enableManualInput = "#{bean.manualInput}"
value="1.4" step="0.1"
minValue="1.2"
maxValue="2.2"/>
-
+
<f:verbatim>
<br/>
<br/>
</f:verbatim>
+
+ <rich:inputNumberSlider inputPosition="left"
showInput="#{bean.showInput}"
showBoundaryValues="#{bean.showBoundaryValues}"
+ showToolTip="true"
disabled="#{bean.disabled}"
+ value="0" step="1"
minValue="-999"
+ maxValue="10"/>
+ <f:verbatim>
+ <br/>
+ <br/>
+ </f:verbatim>
<h:panelGrid columns="2" cellspacing="10px"
border="1">
<h:outputText value="Disabled:"></h:outputText>
@@ -108,6 +117,10 @@
<h:selectBooleanCheckbox value="#{bean.showInput}">
<a4j:support event="onchange"
reRender="SliderId"></a4j:support>
</h:selectBooleanCheckbox>
+ <h:outputText value="Enable Manual
Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{bean.manualInput}">
+ <a4j:support event="onchange"
reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
</h:panelGrid>
<br/>
Modified: trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
===================================================================
--- trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2008-03-19
12:22:01 UTC (rev 6942)
+++ trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2008-03-19
12:46:22 UTC (rev 6943)
@@ -130,7 +130,7 @@
writer.write(" ");
]]></jsp:scriptlet>
</div>
- <div class="dr-insldr-handler rich-inslider-handler
#{component.attributes['handleClass']}" id="#{clientId}Handle">
+ <div class="dr-insldr-handler rich-inslider-handler
#{component.attributes['handleClass']}" id="#{clientId}Handle"
style="visibility:hidden;">
<jsp:scriptlet><![CDATA[
writer.write(" ");
]]></jsp:scriptlet>
Show replies by date