You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by an...@apache.org on 2006/11/05 14:10:03 UTC

svn commit: r471418 - /tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java

Author: andyhot
Date: Sun Nov  5 05:10:02 2006
New Revision: 471418

URL: http://svn.apache.org/viewvc?view=rev&rev=471418
Log:
Use the requestcycle to remember the most current generated (client-side) id of a component.

Modified:
    tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java

Modified: tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java?view=diff&rev=471418&r1=471417&r2=471418
==============================================================================
--- tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java (original)
+++ tapestry/tapestry4/branches/4.1.1-clientIds/tapestry-framework/src/java/org/apache/tapestry/AbstractComponent.java Sun Nov  5 05:10:02 2006
@@ -315,8 +315,10 @@
         
         String id = getClientId();
         
-        if (id != null)
+        if (id != null) {
             writer.attribute("id", id);
+            cycle.setAttribute("org.apache.tapestry.lastId." + getId(), id); 
+        }
     }
     
     /** @since 4.0 */