aspose file tools*
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
JavaRanch » Java Forums » Java » JSF
Bookmark "working with panelGrid" Watch "working with panelGrid" New topic
Author

working with panelGrid

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 190
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

Joined: Jun 25, 2001
Posts: 16012
    
  19

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 190
Thank you
 
 
subject: working with panelGrid