aspose file tools*
The moose likes JSF and the fly likes dataTable headerClass problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "dataTable headerClass problem" Watch "dataTable headerClass problem" New topic
Author

dataTable headerClass problem

John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
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

Joined: Mar 18, 2004
Posts: 572
There would be only one header in a dataTable so headerClasses doesn't make any sense.
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
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

Joined: Nov 06, 2009
Posts: 2
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

Joined: Nov 06, 2009
Posts: 2
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dataTable headerClass problem