You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Abhijit S Ghosh (JIRA)" <de...@myfaces.apache.org> on 2007/12/26 14:23:42 UTC

[jira] Created: (TRINIDAD-881) -tr-render-parent-train skinning property doesn't work

-tr-render-parent-train skinning property doesn't work
------------------------------------------------------

                 Key: TRINIDAD-881
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-881
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Skinning
    Affects Versions: 1.2.5-core
         Environment: JRE 1.6,Apache Tomcat 6.x
            Reporter: Abhijit S Ghosh


Something like 
af|train {
  -tr-render-parent-train:true
}

in a skin doesn't work.

I see that in org.apache.myfaces.trinidadinternal.renderkit.core.desktop.TrainRenderer._shouldRenderParentTrain()
arc.getSkin().getProperty(SkinProperties.AF_TRAIN_RENDER_PARENT_TRAIN) returns a java.lang.String as it is not coerced into a java.lang.Boolean.

So the last line:
return Boolean.TRUE.equals(propValue);  always returns false,since the comparison is always with a String instead of a Boolean.
The code always assumes a Boolean will be returned as the skin property which is false.




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