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

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


     [ https://issues.jboss.org/browse/RF-11801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giovanni Pelosi updated RF-11801:
---------------------------------

    Attachment: dataform.xhtml
                input.xhtml
                abDataTemplate.xhtml


page with dataform and input composite

(use field name prefix as data type info)
                
> 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
>         Attachments: abDataTemplate.xhtml, dataform.xhtml, input.xhtml
>
>
> 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