• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display background color

 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic