[richfaces-issues] [JBoss JIRA] (RF-11801) ClientValidatorImpl ClassCastException in restoreState (StateHolderSaver not an Object[])

Giovanni Pelosi (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 28 06:40:09 EST 2011


    [ https://issues.jboss.org/browse/RF-11801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653198#comment-12653198 ] 

Giovanni Pelosi commented on RF-11801:
--------------------------------------

probably is the same issue: http://java.net/jira/browse/JAVASERVERFACES-1825

related to javax.faces.PARTIAL_STATE_SAVING


anyway, i'll attach my composite component sources (composite component and usage)


they are a little invoved, because i use a custom component (composite or ui.decorate) that insert a basic input composite
that uses client side validators.

I'll try javax.faces.PARTIAL_STATE_SAVING=false, asap






                
> ClientValidatorImpl ClassCastException in restoreState (StateHolderSaver not an Object[])
> -----------------------------------------------------------------------------------------
>
>                 Key: RF-11801
>                 URL: https://issues.jboss.org/browse/RF-11801
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.1.0.CR1
>            Reporter: Giovanni Pelosi
>            Assignee: Pavol Pitonak
>
> when i do an ajax submit on a form with <rich:validator /> inputs fields (h:inputText) 
> (defined in a composite component), i got this exception:
> ClassCastException
> in org.richfaces.component.behavior.ClientValidatorImpl.restoreState at line 357
> {code}
>    @Override
>     public void restoreState(FacesContext context, Object state) {
>         if (context == null) {
>             throw new NullPointerException();
>         }
>         if (state != null) {
>  ==>        Object[] values = (Object[]) state;
>             super.restoreState(context, values[0]);
>             if (values.length != 1) {
>                 groups = (Class<?>[]) values[1];
>                 // If we saved state last time, save state again next time.
>                 clearInitialState();
>             }
>         }
>     }
> {code}
> because state is an instance of javax.faces.component.StateHolderSaver
> RF 4.1CR1
> MOJARRA 2.1.3
> JBoss 7.0.2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list