This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes Set width of tabPanel problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Set width of tabPanel problem" Watch "Set width of tabPanel problem" New topic
Author

Set width of tabPanel problem

Radu Mircea
Ranch Hand

Joined: Jun 14, 2009
Posts: 45
Hi !

I use a tabPanel and i could not control its width, it is expanding outside of my page , it has many tabs headers with text.
I tryed to access its width to set it to a fix dimension like:

Code:

<rich:tabPanel switchType="ajax" width="100px">



but it disconsider this, can be text from tabs a problem ?

Also i tryed to include the tabPanel inside of a panelGrid with a fixed width but also the result was negative and my tabPanel goes outside of the page.

Code:

<h:panelGrid width="100px" columns="1">
<rich:tabPanel switchType="ajax" width="100px">



If you have an ideea please help me.

Thanks,
Radu
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Are scroll bars not appearing at all?

-Cameron McKenzie
Radu Mircea
Ranch Hand

Joined: Jun 14, 2009
Posts: 45
Hi !

Thanks a lot for the message.
The problem was that the tabPanel goes outside of the page , in width because text in written in tab headers was too long, but now we reduce that text and tabPanel came at a reasonable width.

Regards,

Mircea
 
GeeCON Prague 2014
 
subject: Set width of tabPanel problem