Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

working with panelGrid

 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My main page contain one grid panel with 2 columns
The first group panel represent the menu bar and the second will contain the other jsf pages.

1) How can I align both panels on the same height
2) How can I show the first panel on the first 20% of the screen and the second on the rest 80% ?

Thanks



 
Tim Holloway
Saloon Keeper
Pie
Posts: 18096
49
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use CSS. JSF doesn't re-invent display formatting services when it can use existing functionality and stuff like this is what css is all about.

You can do this sort of basic tiling using the core JSF panelGrid by specifying "columnClasses" attribute and defining 2 CSS classes, one for the menu pane and one for the content pane. Adjust their widths (and other visual attributes) as desired.
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic