This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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:
subject: Display background color
Similar Threads
disabled issue for inputtext
h:panelGrid empty space in cells
JSTL and bean data
Doubt in f:facet tag.. Please help me ..
UIParameter issue in HtmlDataTable