myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject cvs commit: incubator-myfaces/src/components/org/apache/myfaces/component/html/util HtmlComponentUtils.java
Date Sun, 16 Jan 2005 20:09:54 GMT
matzew      2005/01/16 12:09:54

  Modified:    src/components/org/apache/myfaces/component/html/ext
                        HtmlInputTextarea.java HtmlMessage.java
                        HtmlInputText.java HtmlOutputLabel.java
                        HtmlSelectOneRadio.java HtmlSelectOneMenu.java
                        HtmlCommandLink.java HtmlCommandButton.java
                        HtmlPanelGroup.java HtmlSelectManyCheckbox.java
                        HtmlOutputText.java HtmlMessages.java
               webapps/examples/web forceId.jsp
               src/components/org/apache/myfaces/component/html/util
                        HtmlComponentUtils.java
  Log:
  added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  
  Revision  Changes    Path
  1.3       +18 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlInputTextarea.java
  
  Index: HtmlInputTextarea.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlInputTextarea.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HtmlInputTextarea.java	13 Oct 2004 11:50:56 -0000	1.2
  +++ HtmlInputTextarea.java	16 Jan 2005 20:09:53 -0000	1.3
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.3  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.2  2004/10/13 11:50:56  matze
    * renamed packages to org.apache
    *
  @@ -36,6 +40,18 @@
           extends javax.faces.component.html.HtmlInputTextarea
           implements UserRoleAware
   {
  +        
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }  
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlInputTextarea";
  
  
  
  1.9       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlMessage.java
  
  Index: HtmlMessage.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlMessage.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HtmlMessage.java	13 Oct 2004 11:50:56 -0000	1.8
  +++ HtmlMessage.java	16 Jan 2005 20:09:53 -0000	1.9
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.9  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.8  2004/10/13 11:50:56  matze
    * renamed packages to org.apache
    *
  @@ -54,6 +58,17 @@
           extends javax.faces.component.html.HtmlMessage
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }        
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlMessage";
  
  
  
  1.7       +11 -4     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlInputText.java
  
  Index: HtmlInputText.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlInputText.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HtmlInputText.java	13 Jan 2005 09:24:53 -0000	1.6
  +++ HtmlInputText.java	16 Jan 2005 20:09:53 -0000	1.7
  @@ -26,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.7  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.6  2005/01/13 09:24:53  matzew
    * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
    *
  @@ -50,11 +53,15 @@
           implements UserRoleAware
   {
           
  -    private String clientId;
  -    
       public String getClientId(FacesContext context)
       {
  -        return HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +        
  +        return clientId;
       }
       
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
  
  
  
  1.5       +18 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlOutputLabel.java
  
  Index: HtmlOutputLabel.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlOutputLabel.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlOutputLabel.java	13 Oct 2004 11:50:57 -0000	1.4
  +++ HtmlOutputLabel.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,18 @@
           extends javax.faces.component.html.HtmlOutputLabel
           implements UserRoleAware
   {
  +        
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }        
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlOutputLabel";
  
  
  
  1.5       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectOneRadio.java
  
  Index: HtmlSelectOneRadio.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectOneRadio.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlSelectOneRadio.java	13 Oct 2004 11:50:57 -0000	1.4
  +++ HtmlSelectOneRadio.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,17 @@
           extends javax.faces.component.html.HtmlSelectOneRadio
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlSelectOneRadio";
  
  
  
  1.5       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectOneMenu.java
  
  Index: HtmlSelectOneMenu.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectOneMenu.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlSelectOneMenu.java	13 Oct 2004 11:50:57 -0000	1.4
  +++ HtmlSelectOneMenu.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,17 @@
           extends javax.faces.component.html.HtmlSelectOneMenu
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlSelectOneMenu";
  
  
  
  1.6       +16 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlCommandLink.java
  
  Index: HtmlCommandLink.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlCommandLink.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HtmlCommandLink.java	13 Oct 2004 11:50:56 -0000	1.5
  +++ HtmlCommandLink.java	16 Jan 2005 20:09:53 -0000	1.6
  @@ -17,10 +17,12 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
   
  +
   /**
    * @author Thomas Spiegl (latest modification by $Author$)
    * @author Manfred Geiler
  @@ -30,6 +32,18 @@
           extends javax.faces.component.html.HtmlCommandLink
           implements UserRoleAware
   {
  +        
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }        
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlCommandLink";
  
  
  
  1.5       +18 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlCommandButton.java
  
  Index: HtmlCommandButton.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlCommandButton.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlCommandButton.java	13 Oct 2004 11:50:56 -0000	1.4
  +++ HtmlCommandButton.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:56  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,18 @@
           extends javax.faces.component.html.HtmlCommandButton
           implements UserRoleAware
   {
  +
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlCommandButton";
  
  
  
  1.6       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlPanelGroup.java
  
  Index: HtmlPanelGroup.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlPanelGroup.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HtmlPanelGroup.java	13 Oct 2004 11:50:57 -0000	1.5
  +++ HtmlPanelGroup.java	16 Jan 2005 20:09:53 -0000	1.6
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.6  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.5  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -45,6 +49,17 @@
           extends javax.faces.component.html.HtmlPanelGroup
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +    
       //private static final Log log = LogFactory.getLog(HtmlPanelGroup.class);
   
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
  
  
  
  1.5       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckbox.java
  
  Index: HtmlSelectManyCheckbox.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckbox.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlSelectManyCheckbox.java	13 Oct 2004 11:50:57 -0000	1.4
  +++ HtmlSelectManyCheckbox.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,17 @@
           extends javax.faces.component.html.HtmlSelectManyCheckbox
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +    
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlSelectManyCheckbox";
  
  
  
  1.5       +17 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlOutputText.java
  
  Index: HtmlOutputText.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlOutputText.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HtmlOutputText.java	13 Oct 2004 11:50:57 -0000	1.4
  +++ HtmlOutputText.java	16 Jan 2005 20:09:53 -0000	1.5
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -25,6 +26,9 @@
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.5  2005/01/16 20:09:53  matzew
  + * added patch form Sean Schofield. forceId for reuse of "legacy JavaScript" (MyFaces-70)
  + *
    * Revision 1.4  2004/10/13 11:50:57  matze
    * renamed packages to org.apache
    *
  @@ -42,6 +46,17 @@
           extends javax.faces.component.html.HtmlOutputText
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlOutputText";
  
  
  
  1.9       +14 -2     incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlMessages.java
  
  Index: HtmlMessages.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/ext/HtmlMessages.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HtmlMessages.java	13 Oct 2004 11:50:57 -0000	1.8
  +++ HtmlMessages.java	16 Jan 2005 20:09:53 -0000	1.9
  @@ -17,6 +17,7 @@
   
   import org.apache.myfaces.component.UserRoleAware;
   import org.apache.myfaces.component.UserRoleUtils;
  +import org.apache.myfaces.component.html.util.HtmlComponentUtils;
   
   import javax.faces.context.FacesContext;
   import javax.faces.el.ValueBinding;
  @@ -30,6 +31,17 @@
           extends javax.faces.component.html.HtmlMessages
           implements UserRoleAware
   {
  +    public String getClientId(FacesContext context)
  +    {
  +        String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context);
  +        if (clientId == null)
  +        {
  +            clientId = super.getClientId(context);
  +        }
  +
  +        return clientId;
  +    }
  +
       //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
   
       public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlMessages";
  
  
  
  1.4       +2 -2      incubator-myfaces/webapps/examples/web/forceId.jsp
  
  Index: forceId.jsp
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/webapps/examples/web/forceId.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- forceId.jsp	14 Jan 2005 08:06:32 -0000	1.3
  +++ forceId.jsp	16 Jan 2005 20:09:53 -0000	1.4
  @@ -72,7 +72,7 @@
                       <h:message id="forceTwoMessage" for="forceTwo" styleClass="error"
/>
   
   				<h:panelGroup/>
  -			  	<h:commandButton id="button" value="#{example_messages['button_submit']}" action="go_home"/>
  +			  	<x:commandLink forceId="true" id="button" value="#{example_messages['button_submit']}"
action="go_home"/>
                       <h:panelGroup/>
   
   			    </h:panelGrid>
  @@ -85,7 +85,7 @@
         		<x:inputText id="username" value="#{user.username}" forceId="true"/>
   			<h:outputText value="Password"/>
         		<x:inputText id="passwd" value="#{user.password}" forceId="true"/>
  -			<h:commandButton value="update" action="#{user.update}"/>
  +			<x:commandButton id="button" forceId="true" value="Update" action="#{user.update}"/>
      			</h:column>
   			</h:dataTable>
   			</h:form>
  
  
  
  1.4       +11 -6     incubator-myfaces/src/components/org/apache/myfaces/component/html/util/HtmlComponentUtils.java
  
  Index: HtmlComponentUtils.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/util/HtmlComponentUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HtmlComponentUtils.java	14 Jan 2005 08:06:32 -0000	1.3
  +++ HtmlComponentUtils.java	16 Jan 2005 20:09:54 -0000	1.4
  @@ -53,12 +53,17 @@
        * @return The clientId to use with the specified component.
        */
       public static String getClientId(UIComponent component, 
  -                                        Renderer renderer, 
  -                                        FacesContext context)
  +                                     Renderer renderer, 
  +                                     FacesContext context)
       {
           // see if the originally supplied id should be used 
           Boolean forceValue = (Boolean)component.getAttributes().get(JSFAttr.FORCE_ID_ATTR);
  -        boolean forceId = forceValue.booleanValue();
  +        boolean forceId = false;
  +        
  +        if (forceValue != null)
  +        {
  +            forceId = forceValue.booleanValue();
  +        }        
           
           if (forceId && component.getId() != null)
           {
  @@ -90,7 +95,7 @@
           }
           else
           {
  -            return component.getClientId(context);
  +            return null;
           }
       }
       
  @@ -130,4 +135,4 @@
           }
           return null;
       }    
  -}
  \ No newline at end of file
  +}
  
  
  

Mime
View raw message