Author: ayanul
Date: 2007-10-02 10:20:28 -0400 (Tue, 02 Oct 2007)
New Revision: 3190
Modified:
trunk/test-applications/facelets/src/main/java/dfs/DemoSliderBean.java
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1044
Modified: trunk/test-applications/facelets/src/main/java/dfs/DemoSliderBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dfs/DemoSliderBean.java 2007-10-02
11:56:34 UTC (rev 3189)
+++ trunk/test-applications/facelets/src/main/java/dfs/DemoSliderBean.java 2007-10-02
14:20:28 UTC (rev 3190)
@@ -49,6 +49,18 @@
}
+ public void doRendered()
+ {
+ if(rendered)
+ rendered = false;
+ else rendered = true;
+ }
+
+ public String getRenderedName() {
+ if(rendered) return "Rendered on";
+ else return "Rendered off";
+ }
+
public boolean isRendered() {
return rendered;
}
@@ -56,5 +68,4 @@
public void setRendered(boolean rendered) {
this.rendered = rendered;
}
-
}
\ No newline at end of file
Modified:
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2007-10-02
11:56:34 UTC (rev 3189)
+++
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSlider.xhtml 2007-10-02
14:20:28 UTC (rev 3190)
@@ -1,4 +1,5 @@
- <h:form
+ <a4j:form id="form1" reRender="list-body"
ajaxSubmit="true"
+ ignoreDupResponses="true" requestDelay="100"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
@@ -6,8 +7,7 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<a4j:region id="stat1">
-
- <a4j:outputPanel id="slider-body">
+ <a4j:outputPanel id="p1">
<rich:dataFilterSlider sliderListener="#{dfs.doSlide}"
rendered="#{dfs.rendered}"
binding="#{inventoryList.dataFilterSlider}" for="carList"
forValRef="inventoryList.carInventory" filterBy="getMileage"
@@ -18,11 +18,11 @@
trailerStyleClass="trailer" handleStyleClass="handle"
handleValue="10000" id="slider_1">
</rich:dataFilterSlider>
-
</a4j:outputPanel>
- <a4j:outputPanel id="list-body">
+
+ <a4j:outputPanel id="list-body" style="border: 1px">
<h:dataTable id="carIndex" rows="10"
binding="#{inventoryList.carMakeIndexUIData}"
value="#{inventoryList.carMakeIndex}" var="category"
@@ -76,10 +76,10 @@
</h:dataTable>
</a4j:outputPanel>
</a4j:region>
-
<h:panelGrid columns="2">
- <h:outputText value="Rendered" />
- <h:selectBooleanCheckbox value="#{dfs.rendered}"
onclick="submit();"/>
- </h:panelGrid>
-
- </h:form>
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dfs.rendered}" >
+ <a4j:support event="onclick"
reRender="p1"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </a4j:form>