How set column width in PF 3.0M3?

UI Components for JSF
Post Reply
marcos.alcantara
Posts: 8
Joined: 28 Jul 2010, 19:30

30 Aug 2011, 21:27

Hi,

How to assign a width to the p:column in this new version (3.0M3)? Now the "style" attribute is being used in a inner div of "td´s".

Thanks.
primefaces 3.0M4, JDK 1.6, glassfish v3.1.1

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

30 Aug 2011, 22:03

Set your table width to auto, by default it is 100%.

marcos.alcantara
Posts: 8
Joined: 28 Jul 2010, 19:30

06 Sep 2011, 17:49

Code: Select all

style="width:auto;"
in datatable has no effect. The column width cannot be set.
primefaces 3.0M4, JDK 1.6, glassfish v3.1.1

tofa
Posts: 46
Joined: 18 Feb 2010, 12:12

13 Sep 2011, 12:59


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

13 Sep 2011, 13:00

style applies to div not table element, better to use firebug to figure the dom.

tofa
Posts: 46
Joined: 18 Feb 2010, 12:12

13 Sep 2011, 13:04

Code: Select all

<p:column styleClass="actions" >
produce this:

Code: Select all

<td>
<div class="ui-dt-c actions">
</td>
Is it not possible to style columns anymore?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests