Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception when adding <f:ajax> to a composite component.

800254Sep 25 2010 — edited Sep 25 2010
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2010
Added on Sep 25 2010
1 comment
271 views