myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Ramírez" <ricardo.fa...@gmail.com>
Subject Tomahawk schedule broken?
Date Wed, 05 Sep 2007 22:20:45 GMT
Hi

I am trying to use the schedule component, with no luck, I tried redefining
the default classes (headerClass, dayClass), 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.

Am I missing something?
I am using yesterday's nightly build




- Ricardo Ramírez

Mime
View raw message