I have created a composite component with a form that works OK without AJAX. When I remove the command button and add an <f:ajax render="testresult"> tag -- either wrapping the whole form content with it or embedding it in one of the <h:inputText> tags, I get the following exception:
SEVERE: javax.faces.FacesException: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.sun.faces.application.view.StateHolderSaver
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1256)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:284)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
This is with GlassFish 3. Can anyone point me to where the problem might be?