Actually, as we specify the column classes on the dataTable element
via the columnClasses attribute, from a concistency point of view, I
believe that it would be better to deprecate the headerClass attribute
and add a new attribute to the dataTable tag called headerClasses that
works just like the columnClasses attribute.
This also makes it possible to have alternating stylesheet classes for
headers (I'm not sure if this is even needed though.)
So I think that it would be better to add the attribute to the dataTable tag.
Regards,
Behi
On 9/15/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Do you think it'd make more sense to create a "headerClass" for
t:column instead of a "headerClasses" t:dataTable value?
On 9/14/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> I'll both open an issue and prepare a patch in a week.
>
> Regards,
> Behi
>
> On 9/14/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > We can accept a patch for t:dataTable that allows multiple elements
> > for headerClass[es]. I'd also recommend opening a JSF spec issue on
> > this if headerClass and columnClasses have this incompatibility.
> >
> > Another way you might be able to solve this problem is to use an EL
> > expression for your headerClass value. Have it return the appropriate
> > class based on the underlying column data type.
> >
> > On 9/14/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I have a dataTable with three columns. The first column shows textual
> > > data and the second and third columns show a detail icon and a delete
> > > icon respectively.
> > >
> > > I have set the columnClasses attribute of the dataTable like this:
> > >
> > > columnClasses="raCol, caCol, caCol"
> > >
> > > The CSS classes are defined like this:
> > >
> > > .raCol {
> > > text-align: right;
> > > }
> > >
> > > .caCol {
> > > text-align: center;
> > > }
> > >
> > > So the textual data inside the first column are right aligned and
> > > icons inside the second and third columns are center aligned.
> > >
> > > Now the problem is that the header columns all are center aligned. The
> > > problem is that the headerClass only accepts one class and not a comma
> > > separated list of classes.
> > >
> > > Is there a solution to this problem already discussed? We might be
> > > able to modify the headerClass so that it can recieve a comma
> > > separated list of classes. This way applications built on top of other
> > > JSF implementations will still work on MyFaces, however the MyFaces
> > > apps might not work seamlessly on other implementations.
> > >
> > > Any ideas how can I fix this simple problem :-?
> > >
> > > Regards,
> > > Behi
> > >
> > > --
> > > "We can only see a short distance ahead,
> > > but we can see plenty there
> > > that needs to be done." - Alan Turing
> > >
> > > "Science is a differential equation. Religion
> > > is a boundary condition" - Alan Turing
> > >
> > > Behrang Saeedzadeh
> > > http://www.jroller.com/page/behrangsa
> > > http://my.opera.com/behrangsa
> > >
> >
>
>
> --
> "We can only see a short distance ahead,
> but we can see plenty there
> that needs to be done." - Alan Turing
>
> "Science is a differential equation. Religion
> is a boundary condition" - Alan Turing
>
> Behrang Saeedzadeh
> http://www.jroller.com/page/behrangsa
> http://my.opera.com/behrangsa
>
--
"We can only see a short distance ahead,
but we can see plenty there
that needs to be done." - Alan Turing
"Science is a differential equation. Religion
is a boundary condition" - Alan Turing
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa