dataTable has no attributes like columnClasses, headerClass?

UI Components for JSF
Post Reply
ttruong
Posts: 109
Joined: 01 Mar 2010, 12:50

24 Mar 2010, 17:13

Is it correct that columnClasses, headerClass etc. cannot defined?

When I do:

Code: Select all

<p:dataTable var="weeklyWorkload" value="#{weeklyWorkloadBean.productions}" headerClass="myStyle">
That it complains an "Undefined attribute name headerClass"

Driton
Posts: 70
Joined: 20 Jan 2010, 12:12

24 Mar 2010, 18:36

Hi ttruong ,

please look into the PrimeFaces Manual what kind of attributes you can use, or use the codecompletion of your IDE
PS: on <p: dataTable ..> you can use "style" and "styleClass"

regads Toni

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

26 Mar 2010, 02:18

Usually PrimeFaces components are not bloated with *Class attributes as skinning is done with CSS selectors instead in a cleaner and nonobstrusive way.

As Toni suggested, please refer to user's guide to see the list of valid attributes.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 43 guests