You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/08/08 17:53:07 UTC

svn commit: r684004 - in /myfaces/core/trunk/api/src/main/java/javax/faces/component: UIParameter.java UISelectItem.java UISelectItems.java UIViewRoot.java

Author: lu4242
Date: Fri Aug  8 08:53:07 2008
New Revision: 684004

URL: http://svn.apache.org/viewvc?rev=684004&view=rev
Log:
restored properties on components which does not use it but cause tck compatibility problems

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIParameter.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIParameter.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIParameter.java?rev=684004&r1=684003&r2=684004&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIParameter.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIParameter.java Fri Aug  8 08:53:07 2008
@@ -71,11 +71,15 @@
      * @JSFProperty tagExcluded="true"
      */
     public void setRendered(boolean state) {
-       throw new UnsupportedOperationException();
+       //throw new UnsupportedOperationException();
+        //Restored due to compatibility with TCK tests.
+        super.setRendered(state);
     }
 
     public boolean isRendered() {
-        return true;
+        //return true;
+        //Restored due to compatibility with TCK tests.
+        return super.isRendered();        
     }
 
     public void setName(String name)

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java?rev=684004&r1=684003&r2=684004&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java Fri Aug  8 08:53:07 2008
@@ -76,11 +76,15 @@
      * @JSFProperty tagExcluded="true"
      */
     public void setRendered(boolean state) {
-       throw new UnsupportedOperationException();
+       //throw new UnsupportedOperationException();
+        //Restored due to compatibility with TCK tests.
+        super.setRendered(state);
     }
 
     public boolean isRendered() {
-        return true;
+        //return true;
+        //Restored due to compatibility with TCK tests.
+        return super.isRendered();
     }
 
     public void setItemDescription(String itemDescription)

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java?rev=684004&r1=684003&r2=684004&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java Fri Aug  8 08:53:07 2008
@@ -68,7 +68,15 @@
      * @JSFProperty tagExcluded="true"
      */
     public void setRendered(boolean state) {
-       throw new UnsupportedOperationException();
+        //throw new UnsupportedOperationException();
+        //Restored due to compatibility with TCK tests.
+        super.setRendered(state);
+    }
+
+    public boolean isRendered() {
+        //return true;
+        //Restored due to compatibility with TCK tests.
+        return super.isRendered();
     }
 
     public void setValue(Object value)

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java?rev=684004&r1=684003&r2=684004&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java Fri Aug  8 08:53:07 2008
@@ -321,12 +321,17 @@
      */
     public void setRendered(boolean state)
     {
-       throw new UnsupportedOperationException();
+       //It should throw UnsupportedOperationException
+       //throw new UnsupportedOperationException();
+       //Restored due to compatibility with TCK tests.
+       super.setRendered(state);
     }
 
     public boolean isRendered()
     {
-        return true;
+        //return true;
+        //Restored due to compatibility with TCK tests.
+        return super.isRendered();
     }
 
     /**
@@ -367,7 +372,9 @@
      */
     public String getClientId(FacesContext context)
     {
-        return null;
+        //return null;
+        //Restored due to compatibility with TCK tests.
+        return super.getClientId(context);
     }
 
     public Object saveState(FacesContext context)