Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 33363 invoked from network); 5 Sep 2007 22:21:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 22:21:19 -0000 Received: (qmail 35772 invoked by uid 500); 5 Sep 2007 22:21:11 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 35722 invoked by uid 500); 5 Sep 2007 22:21:11 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 35688 invoked by uid 99); 5 Sep 2007 22:21:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 15:21:11 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ricardo.faces@gmail.com designates 64.233.184.235 as permitted sender) Received: from [64.233.184.235] (HELO wr-out-0506.google.com) (64.233.184.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 22:21:07 +0000 Received: by wr-out-0506.google.com with SMTP id l58so1104221wrl for ; Wed, 05 Sep 2007 15:20:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=iPlp2Vi7Bv2MwNTUrt1BjdqDb85quhTatYGMFK+/kpzZuI9H++Emqykb2FfgcGlCoEuEPEV2aiE35jjUYQyvZqp8lCYzLdZVXkqNUifhpUX+MSZn8RXc30BJtMnwnQxs28WI+1CU9JsyN1NstQ3q2fLcJ2Y+yAtqcoo5PcfbrJY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=SUT8LfuX4gIz1Y79aR6CdVkWnTGODkCVB8RBM9ksg/9OzXq/wa+Y2QCQvLMqRdRwyD/4FhZy8Pmm+17ccZ+BVZQsW4QodgtiawQhqZS+9PQCAlp7bDn/nu1715g4DEJHky62WCCtGcnKjVV/+HE3Vvs8sZhH8mgZlddQT1j2mqw= Received: by 10.142.239.11 with SMTP id m11mr394694wfh.1189030845208; Wed, 05 Sep 2007 15:20:45 -0700 (PDT) Received: by 10.142.86.4 with HTTP; Wed, 5 Sep 2007 15:20:45 -0700 (PDT) Message-ID: Date: Wed, 5 Sep 2007 17:20:45 -0500 From: "=?ISO-8859-1?Q?Ricardo_Ram=EDrez?=" To: dev@myfaces.apache.org Subject: Tomahawk schedule broken? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_60532_7954379.1189030845181" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_60532_7954379.1189030845181 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Result: (mycss and mycss2 are ignored) Debugging a little, I found in AbstractScheduleRenderer.class: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D protected String getStyleClass(UIComponent component, String className) { [...] Map attributes =3D component.getAttributes(); String returnValue =3D (String) attributes.get(className); return returnValue =3D=3D null ? className : returnValue; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=3D"mycss", it is ignored by t= he component. Am I missing something? I am using yesterday's nightly build - Ricardo Ram=EDrez ------=_Part_60532_7954379.1189030845181 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi

I am trying to use the schedule component, with no luck, I tried = redefining the default classes (headerClass, dayClass), the schedule doesn&= #39;t change.
Snippet:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
<t:schedule
  id=3D"cal"
  headerClass=3D"mycss"
  dayClass=3D"mycss= 2"
  />
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
Result: (mycss and mycss2 are ignored)


Debugging a lit= tle, I found in AbstractScheduleRenderer.class:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
    protected String getStyleClass(UIComponent compon= ent, String className)
    {
    &= nbsp;   [...]
        Map a= ttributes =3D component.getAttributes();
     &= nbsp;  String returnValue =3D (String)=20 attributes.get(className);
        re= turn returnValue =3D=3D null ? className : returnValue;
  &nbs= p; }
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D

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

because of this, th= e 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=3D"mycss", it i= s ignored by the component.

Am I missing something?
I am using ye= sterday's nightly build




- Ricardo Ram=EDrez ------=_Part_60532_7954379.1189030845181--