Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1109

classes and customization not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7-SNAPSHOT
    • 1.1.7
    • Schedule
    • None
    • linux, oc4j

    Description

      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.

      Attachments

        Activity

          People

            cagatay_civici Cagatay Civici
            ricardo_ramirez Ricardo Ramírez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: