[richfaces-issues] [JBoss JIRA] (RF-11801) ClientValidatorImpl ClassCastException in restoreState (StateHolderSaver not an Object[])
Brian Leathem (Updated) (JIRA)
jira-events at lists.jboss.org
Sun Dec 11 12:59:09 EST 2011
[ https://issues.jboss.org/browse/RF-11801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-11801:
-------------------------------
Description:
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
was:
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
@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();
}
}
}
because state is an instance of javax.faces.component.StateHolderSaver
RF 4.1CR1
MOJARRA 2.1.3
JBoss 7.0.2
Component/s: component-validators
> 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
>
> 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