You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/02/02 22:49:47 UTC
svn commit: r1066639 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
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, '");