myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Ramírez (JIRA) <>
Subject [jira] Created: (TOMAHAWK-1109) classes and customization not working
Date Thu, 06 Sep 2007 23:57:28 GMT
classes and customization not working

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

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.

View raw message