You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jesper Pedersen <je...@vip.cybercity.dk> on 2006/03/25 16:28:22 UTC

Multiple th class definitions

Hi.

How it is posible to define multiple <th class definitions ?

I would like to have:

  <table ...
   <thead>
     <tr>
       <th class="x">X</th>
       <th class="y">Y</th>
     </tr>
   </thead>

but <h:dataTable> and <t:dataTable> only allow 'headerClass' instead of
'headerClasses'.

Using a facet 

   <f:facet name="header">

only defines a <span> within the element.

Hope that someone can help with this issue.

Best regards,
 Jesper


Re: Multiple th class definitions

Posted by Greg <de...@gmail.com>.
I miss read the specs.

The solution I think is to use the t:column tag which you can then specify like:
<t:column  headerstyleClass="list-header">

Re: Multiple th class definitions

Posted by Greg <de...@gmail.com>.
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/index.html

According to the above, and the 1.2 RI:

" Space-separated list of CSS style class(es) that will be applied to
any header generated for this table."

However this does not seem to work in myfaces atm, it just inserts the
entire list as an entire string, e.g. "list-header list-header
list-header list-header list-header"

1.2 RI also does introduce a h:Column headerClass, this would then
allow the tableData UIData to then have individually styled <f:facet
name="header"> ?

I.e. trying to put the dataScroller at the top of the dataTable.