[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/component ...

Peter Muir peter at bleepbleep.org.uk
Mon Sep 17 18:17:07 EDT 2007


  User: pmuir   
  Date: 07/09/17 18:17:07

  Modified:    ui/src/main/java/org/jboss/seam/ui/component 
                        UISelectItems.java
  Log:
  JBSEAM-1501
  
  Revision  Changes    Path
  1.6       +25 -5     jboss-seam/ui/src/main/java/org/jboss/seam/ui/component/UISelectItems.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UISelectItems.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/component/UISelectItems.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- UISelectItems.java	4 Aug 2007 14:35:42 -0000	1.5
  +++ UISelectItems.java	17 Sep 2007 22:17:07 -0000	1.6
  @@ -68,6 +68,30 @@
   
      private static final String NO_SELECTION_VALUE = null;
   
  +   /* Kinder impl of get/setLabel */
  +   
  +   private String label;
  +   
  +   public String getLabel()
  +   {
  +      ValueExpression ve = getValueExpression("label");
  +      if (ve != null)
  +      {
  +         Object object = ve.getValue(getFacesContext().getELContext());
  +         if (object != null)
  +         {
  +            return object.toString();
  +         }
  +      }
  +      return label;
  +   }
  +   
  +   public void setLabel(String label)
  +   {
  +      this.label = label;
  +   }
  +
  +
      public abstract void setHideNoSelectionLabel(Boolean hideNoSelectionLabel);
      
      public abstract Boolean getHideNoSelectionLabel();
  @@ -80,10 +104,6 @@
      
      public abstract void setVar(String var);
      
  -   public abstract String getLabel();
  -   
  -   public abstract void setLabel(String label);
  -   
      public abstract Boolean getDisabled();
      
      public abstract void setDisabled(Boolean disabled);
  
  
  



More information about the jboss-cvs-commits mailing list