This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set width of tabPanel problem
 
Similar Threads
RichFaces TabPanle problem
how to set same tab size using JSF and richfaces
how to set same tab size using JSF and richfaces
richfaces tab and jsp:include problem
Rich Faces Tab