Author: vbaranov
Date: 2008-05-07 09:30:49 -0400 (Wed, 07 May 2008)
New Revision: 8475
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/renderkit/DataFilterSliderRendererBase.java
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/taglib/DataFilterSliderTagBase.java
Log:
http://jira.jboss.com/jira/browse/RF-3322
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
===================================================================
---
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2008-05-07
12:54:46 UTC (rev 8474)
+++
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2008-05-07
13:30:49 UTC (rev 8475)
@@ -256,12 +256,6 @@
public abstract void setTrackStyleClass(String trackStyleClass);
- @Deprecated
- public abstract boolean isOnSlideSubmit();
-
- @Deprecated
- public abstract void setOnSlideSubmit(boolean value);
-
public abstract boolean isSubmitOnSlide();
public abstract void setSubmitOnSlide(boolean value);
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/renderkit/DataFilterSliderRendererBase.java
===================================================================
---
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/renderkit/DataFilterSliderRendererBase.java 2008-05-07
12:54:46 UTC (rev 8474)
+++
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/renderkit/DataFilterSliderRendererBase.java 2008-05-07
13:30:49 UTC (rev 8475)
@@ -94,12 +94,12 @@
if(onchange != null){
options.append(", onchange: " + onchange);
}
-
- if(slider.isOnSlideSubmit()){
- options.append(",onSlideSubmit: function(event, v) { updateSlider1(event,
v);}");
- }
+
+ if (slider.isSubmitOnSlide()) {
+ options.append(",onSlideSubmit: function(event, v) { updateSlider1(event,
v);}");
+ }
options.append("}");
-
+
JSReference reference = new JSReference(options.toString());
JSFunction function = new JSFunction("Richfaces.DFSControl.Slider");
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/taglib/DataFilterSliderTagBase.java
===================================================================
---
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/taglib/DataFilterSliderTagBase.java 2008-05-07
12:54:46 UTC (rev 8474)
+++
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/taglib/DataFilterSliderTagBase.java 2008-05-07
13:30:49 UTC (rev 8475)
@@ -49,12 +49,10 @@
* @param submitOnSlide - new value
*/
public void setSubmitOnSlide(ValueExpression submitOnSlide) {
- if (!isSubmitOnSlideSet) {
- this._submitOnSlide = submitOnSlide;
- } else {
+ if (isSubmitOnSlideSet) {
logValueDeprecation(this._submitOnSlide);
}
-
+ this._submitOnSlide = submitOnSlide;
}
private void logValueDeprecation(ValueExpression value) {