You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gc...@apache.org on 2009/11/11 23:01:11 UTC
svn commit: r835093 -
/myfaces/trinidad/branches/trinidad-2.0.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponent.java
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();
+ }
}