classes and customization not working
-------------------------------------

                 Key: TOMAHAWK-1109
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1109
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Schedule
    Affects Versions: 1.1.7-SNAPSHOT
         Environment: linux, oc4j
            Reporter: Ricardo Ramírez


In the nightly build, the default classes (headerClass, dayClass) cannot be 
redefined, the schedule doesn't change.

Snippet:
=================
<t:schedule
  id="cal"
  headerClass="mycss"
  dayClass="mycss2"
  />
==================
Result: (mycss and mycss2 are ignored)


Debugging a little, I found in AbstractScheduleRenderer.class:

========================
    protected String getStyleClass(UIComponent component, String className)
    {
        [...]
        Map attributes = component.getAttributes();
        String returnValue = (String) attributes.get(className);
        return returnValue == null ? className : returnValue;
    }
========================

and it is called like: 
        getStyleClass(comp, "header");

because of this, the attribute is looked up as "header", but the tag registers 
it as "headerClass", null is always returned, with every css attribute. 
So, even if in the taglib I write headerClass="mycss", it is ignored by the 
component.



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