jQuery in Action, 3rd edition
The moose likes JSF and the fly likes Display background color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Display background color " Watch "Display background color " New topic

Display background color

Sam Saha
Ranch Hand

Joined: Jan 23, 2010
Posts: 104
I have a PanelSection in which I have a datatable. I wanted to show a different background(styleClass="partBoxArea") color for the whole section. Now the background color is not showing in the whole PanelSection. It is just showing in the Datatable background only. This does not look good. I am providing the code for the PanelSection. I would appreciate if someone can help me on that. Thanks.

Bart Kummel
Ranch Hand

Joined: Nov 30, 2007
Posts: 81
Hi Sam,

I don't have any experience with the component set you're using. The hx prefix, is that IBM's "Java Widget Library"? However, what I notice in your code is that you set the partBoxArea style to the <hs:dataTableEx> component. So then it is logical that the table gets the background. I think if you want the whole section to get the background of the partBoxArea style, you should set the <hx:panelSection>s styleClass attribute to partBoxArea instead.

Best regards,
Bart Kummel

SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
I agree. Here's the link: http://aspose.com/file-tools
subject: Display background color
It's not a secret anymore!