myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcrawf...@apache.org
Subject svn commit: r835093 - /myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java
Date Wed, 11 Nov 2009 22:01:11 GMT
Author: gcrawford
Date: Wed Nov 11 22:01:11 2009
New Revision: 835093

URL: http://svn.apache.org/viewvc?rev=835093&view=rev
Log:
TRINIDAD-1631 - Trinidad 2 - In UIXComponent throw unsupportedOperationException from getStateHelper
since FacesBean does not implement stateHelper

Modified:
    myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java

Modified: myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java?rev=835093&r1=835092&r2=835093&view=diff
==============================================================================
--- myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java
(original)
+++ myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java
Wed Nov 11 22:01:11 2009
@@ -26,6 +26,7 @@
 import javax.el.MethodExpression;
 
 import javax.faces.component.NamingContainer;
+import javax.faces.component.StateHelper;
 import javax.faces.component.UIComponent;
 import javax.faces.component.UINamingContainer;
 import javax.faces.context.FacesContext;
@@ -792,4 +793,24 @@
    * @see UIXComponentBase#getClientId(FacesContext context)
    */
   abstract public String getContainerClientId(FacesContext context, UIComponent child);
+
+  /**
+   * We are using FacesBean to save state, which does not implement StateHelper, so
+   * calling this method will call UnsupportedOperationException
+   */
+  @Override
+  protected StateHelper getStateHelper()
+  {
+    throw new UnsupportedOperationException();
+  }
+  
+  /**
+   * We are using FacesBean to save state, which does not implement StateHelper, so
+   * calling this method will call UnsupportedOperationException
+   */
+  @Override
+  protected StateHelper getStateHelper(boolean create)
+  {
+    throw new UnsupportedOperationException();
+  }
 }



Mime
View raw message