myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r696580 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java
Date Thu, 18 Sep 2008 07:04:27 GMT
Author: lofwyr
Date: Thu Sep 18 00:04:26 2008
New Revision: 696580

URL: http://svn.apache.org/viewvc?rev=696580&view=rev
Log:
change "OnComponenteCreate" from Beginning of End-Tag to End of Start-Tag, to have Componenten
to be initilzed when processing subcomponents

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java?rev=696580&r1=696579&r2=696580&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/internal/taglib/TobagoTag.java
Thu Sep 18 00:04:26 2008
@@ -18,8 +18,8 @@
  */
 
 import org.apache.commons.lang.StringUtils;
-import static org.apache.myfaces.tobago.TobagoConstants.TOBAGO_COMPONENT_CREATED;
 import org.apache.myfaces.tobago.OnComponentCreated;
+import static org.apache.myfaces.tobago.TobagoConstants.TOBAGO_COMPONENT_CREATED;
 
 import javax.faces.component.UIComponent;
 import javax.faces.webapp.UIComponentTag;
@@ -27,8 +27,8 @@
 
 public abstract class TobagoTag extends UIComponentTag {
 
-
-  public int doEndTag() throws JspException {
+  public int doStartTag() throws JspException {
+    int result = super.doStartTag();
 
     UIComponent component = getComponentInstance();
     if (component instanceof OnComponentCreated
@@ -36,7 +36,7 @@
       component.getAttributes().put(TOBAGO_COMPONENT_CREATED, Boolean.TRUE);
       ((OnComponentCreated) component).onComponentCreated(getFacesContext(), getComponentInstance());
     }
-    return super.doEndTag();
+    return result;
   }
 
   public String[] splitList(String renderers) {



Mime
View raw message