text-align to specific p:column

UI Components for JSF
Post Reply
andy123
Posts: 6
Joined: 04 Jan 2010, 12:38

04 Jan 2010, 13:17

Hi,

I have a p:column within a p:dataTable and I want to apply text-align:center to one of the columns.

Can somebody explan how to do that?

Thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Jan 2010, 17:04

Hi Andy, I'll add a styleClass attribute today to p:column for this, you can get it tomorrow via a nightly build.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Jan 2010, 00:23

Hi again Andy, I've added styleClass attribute to p:column to make it easier to style a particular column.

Related ticket: http://code.google.com/p/primefaces/iss ... ail?id=423

You can grab this with a nightly build. ;)

andy123
Posts: 6
Joined: 04 Jan 2010, 12:38

05 Jan 2010, 11:01

Yes, that helps!

Thanks a lot!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Jan 2010, 14:04

You are welcome.

paco_online
Posts: 19
Joined: 15 Jul 2010, 21:53

14 Sep 2010, 17:28

is it possible that styleClass is only applied to the table header rows?

i'm using 2.2 M1

thx

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests