myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r955807 - /myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java
Date Fri, 18 Jun 2010 00:58:19 GMT
Author: lu4242
Date: Fri Jun 18 00:58:19 2010
New Revision: 955807

URL: http://svn.apache.org/viewvc?rev=955807&view=rev
Log:
MYFACES-2760 f:viewParam jsp tag and f:selectItem jsp tag does not implement new properties

Modified:
    myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java

Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java?rev=955807&r1=955806&r2=955807&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java
(original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java
Fri Jun 18 00:58:19 2010
@@ -48,6 +48,7 @@ public class SelectItemTagBase
     private ValueExpression _itemLabel;
     private ValueExpression _itemValue;
     private ValueExpression _escape;
+    private ValueExpression _noSelectionOption;
 
     protected void setProperties(UIComponent component)
     {
@@ -58,6 +59,7 @@ public class SelectItemTagBase
         setStringProperty(component, org.apache.myfaces.shared.renderkit.JSFAttr.ITEM_LABEL_ATTR,
_itemLabel);
         setStringProperty(component, JSFAttr.ITEM_VALUE_ATTR, _itemValue);
         setBooleanProperty(component, JSFAttr.ITEM_ESCAPED_ATTR, _escape, Boolean.TRUE);
+        setBooleanProperty(component, JSFAttr.NO_SELECTION_OPTION_ATTR, _noSelectionOption,
Boolean.FALSE);
     }
 
     public void setItemDisabled(ValueExpression itemDisabled)
@@ -97,4 +99,9 @@ public class SelectItemTagBase
         return _itemValue;
     }
 
+    public void setNoSelectionOption(ValueExpression noSelectionOption)
+    {
+        _noSelectionOption = noSelectionOption;
+    }
+
 }



Mime
View raw message