You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Julian Ray <ju...@yahoo.com> on 2006/12/14 17:23:28 UTC
datatable headerClass
Ok, so its time I addressed this issue:
datatable provides a single headerClass attribute which is applied to all
<th> elements of the table. Using text-align CSS attributes within a CSS
class allows the table header to align all <th> the same way.
So, how to align individual table header elements left, center, or right?
Using style or styleClass on the outputText in the header facet renders a
<span> within the <th> which is ignored and the <th> CSS styling overrides
the <span> stylying. Unless I'm missing something, it seems that all table
headers in JSF must align the same way wihtin a table.
Julian
RE: datatable headerClass
Posted by Julian Ray <ju...@yahoo.com>.
Excellent. Thank you for the quick response.
-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
Sent: Thursday, December 14, 2006 11:36 AM
To: MyFaces Discussion
Subject: Re: datatable headerClass
<t:column has a headerstyle & headerstyleClass [1]
[1] http://myfaces.apache.org/tomahawk/tagreference.html#column
On 12/14/06, Julian Ray <ju...@yahoo.com> wrote:
>
>
> Ok, so its time I addressed this issue:
>
> datatable provides a single headerClass attribute which is applied to
> all <th> elements of the table. Using text-align CSS attributes within
> a CSS class allows the table header to align all <th> the same way.
>
> So, how to align individual table header elements left, center, or right?
> Using style or styleClass on the outputText in the header facet
> renders a <span> within the <th> which is ignored and the <th> CSS
> styling overrides the <span> stylying. Unless I'm missing something,
> it seems that all table headers in JSF must align the same way wihtin a
table.
>
> Julian
Re: datatable headerClass
Posted by Andrew Robinson <an...@gmail.com>.
<t:column has a headerstyle & headerstyleClass [1]
[1] http://myfaces.apache.org/tomahawk/tagreference.html#column
On 12/14/06, Julian Ray <ju...@yahoo.com> wrote:
>
>
> Ok, so its time I addressed this issue:
>
> datatable provides a single headerClass attribute which is applied to all
> <th> elements of the table. Using text-align CSS attributes within a CSS
> class allows the table header to align all <th> the same way.
>
> So, how to align individual table header elements left, center, or right?
> Using style or styleClass on the outputText in the header facet renders a
> <span> within the <th> which is ignored and the <th> CSS styling overrides
> the <span> stylying. Unless I'm missing something, it seems that all table
> headers in JSF must align the same way wihtin a table.
>
> Julian