myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/aliasbean AliasBean.java
Date Thu, 27 Jan 2005 16:00:30 GMT
svieujot    2005/01/27 08:00:30

  Modified:    src/components/org/apache/myfaces/custom/aliasbean
                        AliasBean.java
  Log:
  
  
  Revision  Changes    Path
  1.7       +12 -1     incubator-myfaces/src/components/org/apache/myfaces/custom/aliasbean/AliasBean.java
  
  Index: AliasBean.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/aliasbean/AliasBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AliasBean.java	27 Jan 2005 01:59:45 -0000	1.6
  +++ AliasBean.java	27 Jan 2005 16:00:30 -0000	1.7
  @@ -46,6 +46,9 @@
    * @author Sylvain Vieujot (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.7  2005/01/27 16:00:30  svieujot
  + * *** empty log message ***
  + *
    * Revision 1.6  2005/01/27 01:59:45  svieujot
    * AliasBean : Change sourceBean attribute for value.
    * Make it work with both beans references ( #{myBean} ), and fix strings as value.
  @@ -86,6 +89,10 @@
       public String getFamily() {
           return COMPONENT_FAMILY;
       }
  +
  +    public void setAlias(String aliasBeanExpression){
  +        this._aliasBeanExpression = aliasBeanExpression;
  +    }
       
       public String getValue(){
           if (_valueExpression != null)
  @@ -228,6 +235,7 @@
       }
   
       private void makeAlias() {
  +        // First, compute the value or reference
           Object value;
           
           ValueBinding valueVB = null;
  @@ -247,6 +255,7 @@
               value = valueVB.getValue(_context);
           }
   
  +        // Then set the alias to this value
           ValueBinding aliasVB;
           if (_aliasBeanExpression == null) {
               aliasVB = getValueBinding("alias");
  
  
  

Mime
View raw message