[richfaces-svn-commits] JBoss Rich Faces SVN: r19021 - in trunk: examples/core-demo/src/main/webapp and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Aug 30 10:56:17 EDT 2010


Author: pyaschenko
Date: 2010-08-30 10:56:16 -0400 (Mon, 30 Aug 2010)
New Revision: 19021

Modified:
   trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js
   trunk/examples/core-demo/src/main/webapp/button.xhtml
Log:
https://jira.jboss.org/browse/RF-9146

Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js	2010-08-30 14:37:46 UTC (rev 19020)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces-queue.js	2010-08-30 14:56:16 UTC (rev 19021)
@@ -105,6 +105,10 @@
 						}
 					}
 				}
+				
+				if (typeof this.queueOptions.requestGroupId == "undefined") {
+					this.queueOptions.requestGroupId = typeof this.source == "string" ? this.source : this.source.id;
+				}
 
 				// copy of event should be created otherwise IE will fail
 				this.event = $.extend({}, event);

Modified: trunk/examples/core-demo/src/main/webapp/button.xhtml
===================================================================
--- trunk/examples/core-demo/src/main/webapp/button.xhtml	2010-08-30 14:37:46 UTC (rev 19020)
+++ trunk/examples/core-demo/src/main/webapp/button.xhtml	2010-08-30 14:56:16 UTC (rev 19021)
@@ -23,11 +23,28 @@
 		    	<f:ajax event="action" execute="@form" render=":out" listener="#{commandBean.listener}" />
 		    </a4j:commandButton>
 	    </h:form>
-	    <br />
+		<br />
 	    <h:panelGroup id="out">
 	        <h:outputText value="#{commandBean.name}" />
 	        <h:outputText value="!" rendered="#{not empty commandBean.name}" />
 	    </h:panelGroup>
+		<br /><hr />
+		RF-9146: request grouping id not set:
+		<br />
+		 <h:panelGroup id="out1">
+	        <h:outputText value="#{commandBean.name}" />
+	    </h:panelGroup>
+		<h:form>
+			<a4j:queue requestDelay="5000"/> 
+			<a4j:commandButton value="Update 1" render="out1">
+				<a4j:param name="v1" value="Update 1" assignTo="#{commandBean.name}" />
+			</a4j:commandButton> 
+			<a4j:commandButton value="Update 2" render="out1"> 
+				<a4j:param name="v1" value="Update 2" assignTo="#{commandBean.name}" />
+			</a4j:commandButton>
+			<hr />
+			<a4j:log level="debug" style="border: solid red 1px" styleClass="log" mode="popup" />
+		</h:form>
 	</h:body>
 </f:view>
 </html>
\ No newline at end of file



More information about the richfaces-svn-commits mailing list