-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.

Reply via email to