myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r1066639 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
Date Wed, 02 Feb 2011 21:49:47 GMT
Author: bommel
Date: Wed Feb  2 21:49:46 2011
New Revision: 1066639

URL: http://svn.apache.org/viewvc?rev=1066639&view=rev
Log:
(TOBAGO-963) It would be nice to have an @autoId in onclick attribute of tc:command
thanks to Helmut Swaczinna

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java?rev=1066639&r1=1066638&r2=1066639&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
Wed Feb  2 21:49:46 2011
@@ -627,6 +627,8 @@ public final class HtmlRendererUtils {
       writer.write("\", function(){");
       String facetAction = (String) facetComponent.getAttributes().get(Attributes.ONCLICK);
       if (facetAction != null) {
+         // Replace @autoId
+        facetAction = StringUtils.replace(facetAction, "@autoId", facetComponent.getClientId(facesContext));
         writer.write(facetAction);
       } else {
         writer.write("Tobago.submitAction(this, '");



Mime
View raw message