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

Blake Sullivan commented on TRINIDAD-2288:
------------------------------------------

The getPartialTriggers() code is correct--the type of this attribute is 
String[].  The bug is in the code that is setting the a simple String as the 
partialTriggers instead of a String[].
                
> 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