columnStyleClass for DataTable

UI Components for JSF
Post Reply
knox
Posts: 9
Joined: 17 Nov 2011, 17:18

17 Nov 2011, 17:53

Hi

I think that it will be a good idea to have a thing like columnStyleClass for a DataTable, which works similar to rowStyleClass.
Now you can access the div and the tr elements with a css. The td is unaccessable. (And this is not the same as the div. Different height).

Hope, that somebody, who is familar with the code can implement this :)

Btw.: The autoUpdate of the growl in M4 is broken...

Thanks

User avatar
bercolax
Posts: 133
Joined: 02 Aug 2009, 13:27
Location: Courtallam, India
Contact:

17 Nov 2011, 20:02

PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS

porthos
Posts: 122
Joined: 09 May 2011, 03:17

18 Nov 2011, 01:41

Doesn't <p:column styleClass="..."> do what you need?
-------
PrimeFaces 3.4, Glassfish 3.1.2, Mojarra 2.1.6

knox
Posts: 9
Joined: 17 Nov 2011, 17:18

04 Dec 2011, 05:29

Hi
Sorry. I forgot my own Question...

The CSS-Class Element will only work, if you know the Position of the Child at compile-time...

<p:column styleClass="..."> affects only the <div>-Element in the Table. But this <div>-Element has not in all cases the same Size as the Cell. So this can't be used if you want to change the Background of the Cell...

With the current Version it is not possible to access a special <td>-Block. Only the <tr> and <div>-Blocks can be accessed...

I hope that it is clear what I mean. (There is a solution, which uses JavaScript and set the css-Class at runtime for each cell. But this is really not a good way.)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests