• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dataTable headerClass problem

 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

Is it posible to define multiple header class definitions ?

I would like to have a dataTable with different styles for differing headers, but <h:dataTable> and <t:dataTable> only allow 'headerClass' instead of 'headerClasses'.

Hope that someone can help with this issue.

John
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There would be only one header in a dataTable so headerClasses doesn't make any sense.
 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The use of Facets gives the illusion of individual headers for each column, but as far as i can see you cannot apply individual styles.

Even by not setting a HeaderClass and then applying styles to the OutputText components within the Facet the style does not seem to be used..?

Is there a way to add a style to a facet?

John
 
java avaj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try providing different style class to your h:column for which you want a different style than the headerClass mentioned in the H:dataTable.


<h:column id="treeTableColumn2" headerClass="columnClassRt"> <h:outputText value="#{data.min}" id="gtry3"></h:outputText>
</h:column>
 
java avaj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java avaj wrote: Try providing different style class to your h:column for which you want a different style than the headerClass mentioned in the H:dataTable.


<h:column id="treeTableColumn2" headerClass="columnClassRt"> <h:outputText value="#{data.min}" id="gtry3"></h:outputText>
</h:column>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic