[ 
https://issues.apache.org/jira/browse/TRINIDAD-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415343#comment-13415343
 ] 

Scott O'Bryan commented on TRINIDAD-2288:
-----------------------------------------

I agree with Blake, something else must be setting this to a String.  Is it 
possible that there is code in your app which does this?  Perhaps it might be 
prudent to put in some logs in this case.
                
> ClassCastException on XhtmlRenderer.getPartialTriggers
> ------------------------------------------------------
>
>                 Key: TRINIDAD-2288
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2288
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: 1.2.13-core , 1.2.14-core 
>         Environment: tomcat 7, java 6
>            Reporter: Jasper de Vries
>
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer#getPartialTriggers(org.apache.myfaces.trinidad.bean.FacesBean)
>  throws a java.lang.ClassCastException: java.lang.String cannot be cast to 
> [Ljava.lang.String (in some cases?).
> I think solved it locally using
>       Object property = bean.getProperty(_partialTriggersKey);
>       if (property instanceof String)
>         return new String[]{ (String)property };
>       else
>         return (String[])bean.getProperty(_partialTriggersKey);
> Since it involves partial trigger I'm not sure if I need to split the string 
> on spaces.

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

        

Reply via email to