Jasper de Vries created TRINIDAD-2288:
-----------------------------------------

             Summary: 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.14-core , 1.2.13-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