File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes working with panelGrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "working with panelGrid" Watch "working with panelGrid" New topic

working with panelGrid

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197

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% ?


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

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.

An IDE is no substitute for an Intelligent Developer.
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197
Thank you
I agree. Here's the link:
subject: working with panelGrid
It's not a secret anymore!