tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1033655 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java
Date Wed, 10 Nov 2010 19:24:32 GMT
Author: hlship
Date: Wed Nov 10 19:24:31 2010
New Revision: 1033655

URL: http://svn.apache.org/viewvc?rev=1033655&view=rev
Log:
TAP5-1333: Add a constructor to MultiZoneUpdate that accepts a Zone (really, a ClientBodyElement)

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java?rev=1033655&r1=1033654&r2=1033655&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/ajax/MultiZoneUpdate.java
Wed Nov 10 19:24:31 2010
@@ -45,6 +45,12 @@ public class MultiZoneUpdate
         this(zoneId, renderer, null);
     }
 
+    /** Alternate constructor that takes a ClientBodyElement (typically, a {@link Zone}).
*/
+    public MultiZoneUpdate(ClientBodyElement zone)
+    {
+        this(zone.getClientId(), zone.getBody());
+    }
+
     private MultiZoneUpdate(String zoneId, Object renderer, MultiZoneUpdate parent)
     {
         assert renderer != null;



Mime
View raw message