You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mb...@apache.org on 2005/12/02 11:56:31 UTC

svn commit: r351675 [1/4] - in /myfaces: api/trunk/src/java/javax/faces/component/ api/trunk/src/java/javax/faces/component/html/ sandbox/trunk/src/java/org/apache/myfaces/custom/comparetovalidator/ sandbox/trunk/src/java/org/apache/myfaces/custom/sche...

Author: mbr
Date: Fri Dec  2 02:55:32 2005
New Revision: 351675

URL: http://svn.apache.org/viewcvs?rev=351675&view=rev
Log:
cast to String replaced with object.toString() for valuebindings. 
This allows use of other classes than String

Added:
    myfaces/api/trunk/src/java/javax/faces/component/html/_ComponentUtils.java   (with props)
    myfaces/share/trunk/src/java/org/apache/myfaces/util/_ComponentUtils.java   (with props)
Modified:
    myfaces/api/trunk/src/java/javax/faces/component/UIComponentBase.java
    myfaces/api/trunk/src/java/javax/faces/component/UIMessage.java
    myfaces/api/trunk/src/java/javax/faces/component/UIParameter.java
    myfaces/api/trunk/src/java/javax/faces/component/UISelectItem.java
    myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java
    myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandButton.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandLink.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlDataTable.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlForm.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlGraphicImage.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputSecret.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputText.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputTextarea.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessage.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessages.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlOutputFormat.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlOutputLabel.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlOutputLink.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlOutputText.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlPanelGrid.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlPanelGroup.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectBooleanCheckbox.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectManyCheckbox.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectManyListbox.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectManyMenu.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectOneListbox.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectOneMenu.java
    myfaces/api/trunk/src/java/javax/faces/component/html/HtmlSelectOneRadio.java
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlPlanner.java
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/schedule/HtmlSchedule.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlCommandButton.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlCommandLink.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlGraphicImage.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlInputSecret.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlInputText.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlInputTextarea.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlMessages.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlOutputLabel.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlOutputText.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlPanelGrid.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlPanelGroup.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckbox.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckbox.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListbox.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenu.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListbox.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenu.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadio.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/aliasbean/AliasBean.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlInputCalendar.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/checkbox/HtmlCheckbox.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanel.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/datalist/HtmlDataList.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/date/HtmlInputDate.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/fileupload/HtmlInputFileUpload.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTag.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/inputHtml/InputHtml.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/inputTextHelp/HtmlInputTextHelp.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/jslistener/JsValueChangeListener.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/jsvalueset/HtmlJsValueSet.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/layout/HtmlPanelLayout.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/navigation/HtmlPanelNavigation.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/navmenu/UINavigationMenuItem.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlPanelNavigationMenu.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlCommandJSCookMenu.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/panelstack/HtmlPanelStack.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/popup/HtmlPopup.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/radio/HtmlRadio.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/stylesheet/Stylesheet.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/swapimage/HtmlSwapImage.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tabbedpane/HtmlPanelTab.java
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tabbedpane/HtmlPanelTabbedPane.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIComponentBase.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIComponentBase.java Fri Dec  2 02:55:32 2005
@@ -1071,7 +1071,7 @@
     {
         if (_rendererType != null) return _rendererType;
         ValueBinding vb = getValueBinding("rendererType");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIMessage.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIMessage.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIMessage.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIMessage.java Fri Dec  2 02:55:32 2005
@@ -60,7 +60,7 @@
     {
         if (_for != null) return _for;
         ValueBinding vb = getValueBinding("for");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setShowDetail(boolean showDetail)

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIParameter.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIParameter.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIParameter.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIParameter.java Fri Dec  2 02:55:32 2005
@@ -53,7 +53,7 @@
     {
         if (_name != null) return _name;
         ValueBinding vb = getValueBinding("name");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setValue(Object value)

Modified: myfaces/api/trunk/src/java/javax/faces/component/UISelectItem.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UISelectItem.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UISelectItem.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UISelectItem.java Fri Dec  2 02:55:32 2005
@@ -57,7 +57,7 @@
     {
         if (_itemDescription != null) return _itemDescription;
         ValueBinding vb = getValueBinding("itemDescription");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setItemDisabled(boolean itemDisabled)
@@ -82,7 +82,7 @@
     {
         if (_itemLabel != null) return _itemLabel;
         ValueBinding vb = getValueBinding("itemLabel");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setItemValue(Object itemValue)

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java Fri Dec  2 02:55:32 2005
@@ -284,7 +284,7 @@
     {
         if (_renderKitId != null) return _renderKitId;
         ValueBinding vb = getValueBinding("renderKitId");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : DEFAULT_RENDERKITID;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : DEFAULT_RENDERKITID;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java Fri Dec  2 02:55:32 2005
@@ -19,6 +19,7 @@
 import javax.faces.context.FacesContext;
 import javax.faces.el.EvaluationException;
 import javax.faces.el.MethodBinding;
+import javax.faces.el.ValueBinding;
 import javax.faces.validator.Validator;
 import javax.faces.validator.ValidatorException;
 import java.util.Iterator;
@@ -193,6 +194,16 @@
                 }
             }
         }
+    }
+    
+    static String getStringValue(FacesContext context, ValueBinding vb)
+    {
+        Object value = vb.getValue(context);
+        if(value == null)
+        {
+            return null;
+        }
+        return value.toString();
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandButton.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandButton.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandButton.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandButton.java Fri Dec  2 02:55:32 2005
@@ -76,7 +76,7 @@
     {
         if (_accesskey != null) return _accesskey;
         ValueBinding vb = getValueBinding("accesskey");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setAlt(String alt)
@@ -88,7 +88,7 @@
     {
         if (_alt != null) return _alt;
         ValueBinding vb = getValueBinding("alt");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -100,7 +100,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDisabled(boolean disabled)
@@ -125,7 +125,7 @@
     {
         if (_image != null) return _image;
         ValueBinding vb = getValueBinding("image");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setLang(String lang)
@@ -137,7 +137,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnblur(String onblur)
@@ -149,7 +149,7 @@
     {
         if (_onblur != null) return _onblur;
         ValueBinding vb = getValueBinding("onblur");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnchange(String onchange)
@@ -161,7 +161,7 @@
     {
         if (_onchange != null) return _onchange;
         ValueBinding vb = getValueBinding("onchange");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -173,7 +173,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -185,7 +185,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnfocus(String onfocus)
@@ -197,7 +197,7 @@
     {
         if (_onfocus != null) return _onfocus;
         ValueBinding vb = getValueBinding("onfocus");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -209,7 +209,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -221,7 +221,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -233,7 +233,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -245,7 +245,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -257,7 +257,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -269,7 +269,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -281,7 +281,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -293,7 +293,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnselect(String onselect)
@@ -305,7 +305,7 @@
     {
         if (_onselect != null) return _onselect;
         ValueBinding vb = getValueBinding("onselect");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setReadonly(boolean readonly)
@@ -330,7 +330,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -342,7 +342,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTabindex(String tabindex)
@@ -354,7 +354,7 @@
     {
         if (_tabindex != null) return _tabindex;
         ValueBinding vb = getValueBinding("tabindex");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -366,7 +366,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setType(String type)
@@ -378,7 +378,7 @@
     {
         if (_type != null) return _type;
         ValueBinding vb = getValueBinding("type");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : DEFAULT_TYPE;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : DEFAULT_TYPE;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandLink.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandLink.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandLink.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlCommandLink.java Fri Dec  2 02:55:32 2005
@@ -73,7 +73,7 @@
     {
         if (_accesskey != null) return _accesskey;
         ValueBinding vb = getValueBinding("accesskey");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setCharset(String charset)
@@ -85,7 +85,7 @@
     {
         if (_charset != null) return _charset;
         ValueBinding vb = getValueBinding("charset");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setCoords(String coords)
@@ -97,7 +97,7 @@
     {
         if (_coords != null) return _coords;
         ValueBinding vb = getValueBinding("coords");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -109,7 +109,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setHreflang(String hreflang)
@@ -121,7 +121,7 @@
     {
         if (_hreflang != null) return _hreflang;
         ValueBinding vb = getValueBinding("hreflang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setLang(String lang)
@@ -133,7 +133,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnblur(String onblur)
@@ -145,7 +145,7 @@
     {
         if (_onblur != null) return _onblur;
         ValueBinding vb = getValueBinding("onblur");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -157,7 +157,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -169,7 +169,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnfocus(String onfocus)
@@ -181,7 +181,7 @@
     {
         if (_onfocus != null) return _onfocus;
         ValueBinding vb = getValueBinding("onfocus");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -193,7 +193,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -205,7 +205,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -217,7 +217,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -229,7 +229,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -241,7 +241,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -253,7 +253,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -265,7 +265,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -277,7 +277,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setRel(String rel)
@@ -289,7 +289,7 @@
     {
         if (_rel != null) return _rel;
         ValueBinding vb = getValueBinding("rel");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setRev(String rev)
@@ -301,7 +301,7 @@
     {
         if (_rev != null) return _rev;
         ValueBinding vb = getValueBinding("rev");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setShape(String shape)
@@ -313,7 +313,7 @@
     {
         if (_shape != null) return _shape;
         ValueBinding vb = getValueBinding("shape");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyle(String style)
@@ -325,7 +325,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -337,7 +337,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTabindex(String tabindex)
@@ -349,7 +349,7 @@
     {
         if (_tabindex != null) return _tabindex;
         ValueBinding vb = getValueBinding("tabindex");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTarget(String target)
@@ -361,7 +361,7 @@
     {
         if (_target != null) return _target;
         ValueBinding vb = getValueBinding("target");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -373,7 +373,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setType(String type)
@@ -385,7 +385,7 @@
     {
         if (_type != null) return _type;
         ValueBinding vb = getValueBinding("type");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlDataTable.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlDataTable.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlDataTable.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlDataTable.java Fri Dec  2 02:55:32 2005
@@ -85,7 +85,7 @@
     {
         if (_bgcolor != null) return _bgcolor;
         ValueBinding vb = getValueBinding("bgcolor");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setBorder(int border)
@@ -110,7 +110,7 @@
     {
         if (_cellpadding != null) return _cellpadding;
         ValueBinding vb = getValueBinding("cellpadding");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setCellspacing(String cellspacing)
@@ -122,7 +122,7 @@
     {
         if (_cellspacing != null) return _cellspacing;
         ValueBinding vb = getValueBinding("cellspacing");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setColumnClasses(String columnClasses)
@@ -134,7 +134,7 @@
     {
         if (_columnClasses != null) return _columnClasses;
         ValueBinding vb = getValueBinding("columnClasses");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -146,7 +146,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setFooterClass(String footerClass)
@@ -158,7 +158,7 @@
     {
         if (_footerClass != null) return _footerClass;
         ValueBinding vb = getValueBinding("footerClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setFrame(String frame)
@@ -170,7 +170,7 @@
     {
         if (_frame != null) return _frame;
         ValueBinding vb = getValueBinding("frame");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setHeaderClass(String headerClass)
@@ -182,7 +182,7 @@
     {
         if (_headerClass != null) return _headerClass;
         ValueBinding vb = getValueBinding("headerClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setLang(String lang)
@@ -194,7 +194,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -206,7 +206,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -218,7 +218,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -230,7 +230,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -242,7 +242,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -254,7 +254,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -266,7 +266,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -278,7 +278,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -290,7 +290,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -302,7 +302,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -314,7 +314,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setRowClasses(String rowClasses)
@@ -326,7 +326,7 @@
     {
         if (_rowClasses != null) return _rowClasses;
         ValueBinding vb = getValueBinding("rowClasses");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setRules(String rules)
@@ -338,7 +338,7 @@
     {
         if (_rules != null) return _rules;
         ValueBinding vb = getValueBinding("rules");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyle(String style)
@@ -350,7 +350,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -362,7 +362,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setSummary(String summary)
@@ -374,7 +374,7 @@
     {
         if (_summary != null) return _summary;
         ValueBinding vb = getValueBinding("summary");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -386,7 +386,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setWidth(String width)
@@ -398,7 +398,7 @@
     {
         if (_width != null) return _width;
         ValueBinding vb = getValueBinding("width");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlForm.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlForm.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlForm.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlForm.java Fri Dec  2 02:55:32 2005
@@ -68,7 +68,7 @@
     {
         if (_accept != null) return _accept;
         ValueBinding vb = getValueBinding("accept");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setAcceptcharset(String acceptcharset)
@@ -80,7 +80,7 @@
     {
         if (_acceptcharset != null) return _acceptcharset;
         ValueBinding vb = getValueBinding("acceptcharset");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -92,7 +92,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setEnctype(String enctype)
@@ -104,7 +104,7 @@
     {
         if (_enctype != null) return _enctype;
         ValueBinding vb = getValueBinding("enctype");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : DEFAULT_ENCTYPE;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : DEFAULT_ENCTYPE;
     }
 
     public void setLang(String lang)
@@ -116,7 +116,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -128,7 +128,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -140,7 +140,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -152,7 +152,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -164,7 +164,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -176,7 +176,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -188,7 +188,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -200,7 +200,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -212,7 +212,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -224,7 +224,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -236,7 +236,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnreset(String onreset)
@@ -248,7 +248,7 @@
     {
         if (_onreset != null) return _onreset;
         ValueBinding vb = getValueBinding("onreset");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnsubmit(String onsubmit)
@@ -260,7 +260,7 @@
     {
         if (_onsubmit != null) return _onsubmit;
         ValueBinding vb = getValueBinding("onsubmit");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyle(String style)
@@ -272,7 +272,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -284,7 +284,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTarget(String target)
@@ -296,7 +296,7 @@
     {
         if (_target != null) return _target;
         ValueBinding vb = getValueBinding("target");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -308,7 +308,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlGraphicImage.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlGraphicImage.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlGraphicImage.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlGraphicImage.java Fri Dec  2 02:55:32 2005
@@ -68,7 +68,7 @@
     {
         if (_alt != null) return _alt;
         ValueBinding vb = getValueBinding("alt");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -80,7 +80,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setHeight(String height)
@@ -92,7 +92,7 @@
     {
         if (_height != null) return _height;
         ValueBinding vb = getValueBinding("height");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setIsmap(boolean ismap)
@@ -117,7 +117,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setLongdesc(String longdesc)
@@ -129,7 +129,7 @@
     {
         if (_longdesc != null) return _longdesc;
         ValueBinding vb = getValueBinding("longdesc");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -141,7 +141,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -153,7 +153,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -165,7 +165,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -177,7 +177,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -189,7 +189,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -201,7 +201,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -213,7 +213,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -225,7 +225,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -237,7 +237,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -249,7 +249,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyle(String style)
@@ -261,7 +261,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -273,7 +273,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -285,7 +285,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setUsemap(String usemap)
@@ -297,7 +297,7 @@
     {
         if (_usemap != null) return _usemap;
         ValueBinding vb = getValueBinding("usemap");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setWidth(String width)
@@ -309,7 +309,7 @@
     {
         if (_width != null) return _width;
         ValueBinding vb = getValueBinding("width");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputSecret.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputSecret.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputSecret.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputSecret.java Fri Dec  2 02:55:32 2005
@@ -78,7 +78,7 @@
     {
         if (_accesskey != null) return _accesskey;
         ValueBinding vb = getValueBinding("accesskey");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setAlt(String alt)
@@ -90,7 +90,7 @@
     {
         if (_alt != null) return _alt;
         ValueBinding vb = getValueBinding("alt");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -102,7 +102,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDisabled(boolean disabled)
@@ -127,7 +127,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setMaxlength(int maxlength)
@@ -152,7 +152,7 @@
     {
         if (_onblur != null) return _onblur;
         ValueBinding vb = getValueBinding("onblur");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnchange(String onchange)
@@ -164,7 +164,7 @@
     {
         if (_onchange != null) return _onchange;
         ValueBinding vb = getValueBinding("onchange");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -176,7 +176,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -188,7 +188,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnfocus(String onfocus)
@@ -200,7 +200,7 @@
     {
         if (_onfocus != null) return _onfocus;
         ValueBinding vb = getValueBinding("onfocus");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -212,7 +212,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -224,7 +224,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -236,7 +236,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -248,7 +248,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -260,7 +260,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -272,7 +272,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -284,7 +284,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -296,7 +296,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnselect(String onselect)
@@ -308,7 +308,7 @@
     {
         if (_onselect != null) return _onselect;
         ValueBinding vb = getValueBinding("onselect");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setReadonly(boolean readonly)
@@ -359,7 +359,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -371,7 +371,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTabindex(String tabindex)
@@ -383,7 +383,7 @@
     {
         if (_tabindex != null) return _tabindex;
         ValueBinding vb = getValueBinding("tabindex");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -395,7 +395,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputText.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputText.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputText.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputText.java Fri Dec  2 02:55:32 2005
@@ -76,7 +76,7 @@
     {
         if (_accesskey != null) return _accesskey;
         ValueBinding vb = getValueBinding("accesskey");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setAlt(String alt)
@@ -88,7 +88,7 @@
     {
         if (_alt != null) return _alt;
         ValueBinding vb = getValueBinding("alt");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDir(String dir)
@@ -100,7 +100,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDisabled(boolean disabled)
@@ -125,7 +125,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setMaxlength(int maxlength)
@@ -150,7 +150,7 @@
     {
         if (_onblur != null) return _onblur;
         ValueBinding vb = getValueBinding("onblur");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnchange(String onchange)
@@ -162,7 +162,7 @@
     {
         if (_onchange != null) return _onchange;
         ValueBinding vb = getValueBinding("onchange");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -174,7 +174,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -186,7 +186,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnfocus(String onfocus)
@@ -198,7 +198,7 @@
     {
         if (_onfocus != null) return _onfocus;
         ValueBinding vb = getValueBinding("onfocus");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -210,7 +210,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -222,7 +222,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -234,7 +234,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -246,7 +246,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -258,7 +258,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -270,7 +270,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -282,7 +282,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -294,7 +294,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnselect(String onselect)
@@ -306,7 +306,7 @@
     {
         if (_onselect != null) return _onselect;
         ValueBinding vb = getValueBinding("onselect");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setReadonly(boolean readonly)
@@ -344,7 +344,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -356,7 +356,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTabindex(String tabindex)
@@ -368,7 +368,7 @@
     {
         if (_tabindex != null) return _tabindex;
         ValueBinding vb = getValueBinding("tabindex");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -380,7 +380,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputTextarea.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputTextarea.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputTextarea.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlInputTextarea.java Fri Dec  2 02:55:32 2005
@@ -75,7 +75,7 @@
     {
         if (_accesskey != null) return _accesskey;
         ValueBinding vb = getValueBinding("accesskey");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setCols(int cols)
@@ -100,7 +100,7 @@
     {
         if (_dir != null) return _dir;
         ValueBinding vb = getValueBinding("dir");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setDisabled(boolean disabled)
@@ -125,7 +125,7 @@
     {
         if (_lang != null) return _lang;
         ValueBinding vb = getValueBinding("lang");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnblur(String onblur)
@@ -137,7 +137,7 @@
     {
         if (_onblur != null) return _onblur;
         ValueBinding vb = getValueBinding("onblur");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnchange(String onchange)
@@ -149,7 +149,7 @@
     {
         if (_onchange != null) return _onchange;
         ValueBinding vb = getValueBinding("onchange");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnclick(String onclick)
@@ -161,7 +161,7 @@
     {
         if (_onclick != null) return _onclick;
         ValueBinding vb = getValueBinding("onclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOndblclick(String ondblclick)
@@ -173,7 +173,7 @@
     {
         if (_ondblclick != null) return _ondblclick;
         ValueBinding vb = getValueBinding("ondblclick");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnfocus(String onfocus)
@@ -185,7 +185,7 @@
     {
         if (_onfocus != null) return _onfocus;
         ValueBinding vb = getValueBinding("onfocus");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeydown(String onkeydown)
@@ -197,7 +197,7 @@
     {
         if (_onkeydown != null) return _onkeydown;
         ValueBinding vb = getValueBinding("onkeydown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeypress(String onkeypress)
@@ -209,7 +209,7 @@
     {
         if (_onkeypress != null) return _onkeypress;
         ValueBinding vb = getValueBinding("onkeypress");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnkeyup(String onkeyup)
@@ -221,7 +221,7 @@
     {
         if (_onkeyup != null) return _onkeyup;
         ValueBinding vb = getValueBinding("onkeyup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousedown(String onmousedown)
@@ -233,7 +233,7 @@
     {
         if (_onmousedown != null) return _onmousedown;
         ValueBinding vb = getValueBinding("onmousedown");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmousemove(String onmousemove)
@@ -245,7 +245,7 @@
     {
         if (_onmousemove != null) return _onmousemove;
         ValueBinding vb = getValueBinding("onmousemove");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseout(String onmouseout)
@@ -257,7 +257,7 @@
     {
         if (_onmouseout != null) return _onmouseout;
         ValueBinding vb = getValueBinding("onmouseout");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseover(String onmouseover)
@@ -269,7 +269,7 @@
     {
         if (_onmouseover != null) return _onmouseover;
         ValueBinding vb = getValueBinding("onmouseover");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnmouseup(String onmouseup)
@@ -281,7 +281,7 @@
     {
         if (_onmouseup != null) return _onmouseup;
         ValueBinding vb = getValueBinding("onmouseup");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setOnselect(String onselect)
@@ -293,7 +293,7 @@
     {
         if (_onselect != null) return _onselect;
         ValueBinding vb = getValueBinding("onselect");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setReadonly(boolean readonly)
@@ -331,7 +331,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -343,7 +343,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTabindex(String tabindex)
@@ -355,7 +355,7 @@
     {
         if (_tabindex != null) return _tabindex;
         ValueBinding vb = getValueBinding("tabindex");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -367,7 +367,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
 

Modified: myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessage.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessage.java?rev=351675&r1=351674&r2=351675&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessage.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/html/HtmlMessage.java Fri Dec  2 02:55:32 2005
@@ -59,7 +59,7 @@
     {
         if (_errorClass != null) return _errorClass;
         ValueBinding vb = getValueBinding("errorClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setErrorStyle(String errorStyle)
@@ -71,7 +71,7 @@
     {
         if (_errorStyle != null) return _errorStyle;
         ValueBinding vb = getValueBinding("errorStyle");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setFatalClass(String fatalClass)
@@ -83,7 +83,7 @@
     {
         if (_fatalClass != null) return _fatalClass;
         ValueBinding vb = getValueBinding("fatalClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setFatalStyle(String fatalStyle)
@@ -95,7 +95,7 @@
     {
         if (_fatalStyle != null) return _fatalStyle;
         ValueBinding vb = getValueBinding("fatalStyle");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setInfoClass(String infoClass)
@@ -107,7 +107,7 @@
     {
         if (_infoClass != null) return _infoClass;
         ValueBinding vb = getValueBinding("infoClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setInfoStyle(String infoStyle)
@@ -119,7 +119,7 @@
     {
         if (_infoStyle != null) return _infoStyle;
         ValueBinding vb = getValueBinding("infoStyle");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyle(String style)
@@ -131,7 +131,7 @@
     {
         if (_style != null) return _style;
         ValueBinding vb = getValueBinding("style");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setStyleClass(String styleClass)
@@ -143,7 +143,7 @@
     {
         if (_styleClass != null) return _styleClass;
         ValueBinding vb = getValueBinding("styleClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTitle(String title)
@@ -155,7 +155,7 @@
     {
         if (_title != null) return _title;
         ValueBinding vb = getValueBinding("title");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setTooltip(boolean tooltip)
@@ -180,7 +180,7 @@
     {
         if (_warnClass != null) return _warnClass;
         ValueBinding vb = getValueBinding("warnClass");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }
 
     public void setWarnStyle(String warnStyle)
@@ -192,7 +192,7 @@
     {
         if (_warnStyle != null) return _warnStyle;
         ValueBinding vb = getValueBinding("warnStyle");
-        return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+        return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
     }