Author: ilya_shaikovsky
Date: 2010-05-31 10:53:14 -0400 (Mon, 31 May 2010)
New Revision: 17417
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
Log:
attachQueue correction
componentControl sample
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml 2010-05-31
14:30:43 UTC (rev 17416)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml 2010-05-31
14:53:14 UTC (rev 17417)
@@ -12,17 +12,20 @@
request delay from 500ms to 1500ms.
</p>
-<a4j:queue name="buttons_queue"
requestDelay="500"></a4j:queue>
+<p>If you will click the buttons fast - requests will be combined and only last
click will
+be processed</p>
+
+<a4j:queue requestDelay="500"></a4j:queue>
<h:form>
<rich:panel>
<h:panelGrid columns="2">
<a4j:commandButton value="Set Name to Alex" render="rep">
- <a4j:attachQueue queueName="buttons_queue"
requestGroupingId="group1"/>
+ <a4j:attachQueue requestGroupingId="group1"/>
<a4j:param name="username" value="Alex"
assignTo="#{userBean.name}" />
</a4j:commandButton>
<a4j:commandButton value="Set Name to John" render="rep">
- <a4j:attachQueue queueName="buttons_queue"
requestGroupingId="group1" requestDelay="1500"/>
+ <a4j:attachQueue requestGroupingId="group1"
requestDelay="1500"/>
<a4j:param name="username" value="John"
assignTo="#{userBean.name}" />
</a4j:commandButton>
@@ -33,6 +36,5 @@
<h:outputText id="rep" value="Selected Name:#{userBean.name}"
/>
</rich:panel>
</h:form>
- <a4j:log/>
</ui:composition>
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-05-31
14:30:43 UTC (rev 17416)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-05-31
14:53:14 UTC (rev 17417)
@@ -10,6 +10,7 @@
xmlns:rfn="http://richfaces.org/misc">
<ui:composition>
+
<h:form id="form">
<h:panelGrid columns="2">
<rich:panel>
@@ -20,7 +21,7 @@
<ul>
<a4j:repeat value="#{carsBean.allVendors}" var="vendor">
<li><h:outputLink value="#">#{vendor}
- <rfn:componentControl target="table" operation="filter"
event="click">
+ <rfn:componentControl target="#{rfn:clientId('table')}"
operation="filter" event="click">
<f:param value="vendor"/>
<f:param value="#{vendor}"/>
</rfn:componentControl>