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

Pavol Pitonak reassigned RF-11801:
----------------------------------

    Assignee: Jan Papousek  (was: Pavol Pitonak)

    
> 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: Jan Papousek
>         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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to