myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2827) CCE if component values are not of type String
Date Tue, 20 Jul 2010 08:21:50 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890212#action_12890212
] 

Jakob Korherr commented on MYFACES-2827:
----------------------------------------

I just committed the patch.

I totally agree with what Jan-Kees said here, If it's not a String ==> it's not a Bean
==> we don't have to "Bean-validate" it. Thus I think we should not have any problems with
this solution.

> CCE if component values are not of type String
> ----------------------------------------------
>
>                 Key: MYFACES-2827
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2827
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Mark Struberg
>            Assignee: Jakob Korherr
>         Attachments: MYFACES-2827.patch
>
>
> Somehow I did get a Long into my component. This leads to the following Exception:
> java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
> 	at javax.faces.validator.BeanValidator.validate(BeanValidator.java:145)
> 	at javax.faces.component._ComponentUtils.callValidators(_ComponentUtils.java:173)
> 	at javax.faces.component.UIInput.validateValue(UIInput.java:425)
> 	at javax.faces.component.UIInput.validate(UIInput.java:537)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:240)
> 	at javax.faces.component.UIData.process(UIData.java:1043)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message