my dog learned polymorphism*
The moose likes Portals and Portlets and the fly likes How to control the size of the portlet? 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 » Portals and Portlets
Bookmark "How to control the size of the portlet?" Watch "How to control the size of the portlet?" New topic

How to control the size of the portlet?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
How to control the size of the portlet? I am using IBM Websphere Portal.

Abhishek Kanchan
Ranch Hand

Joined: May 10, 2007
Posts: 32
Hi Ankur,

I am also having similar problem, any help will be greatly appreciated.

SCJP 1.5<br />SCWCD 5.0
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

The layout of a portal page is determined by the theme and skin in which it resides.

Tables and style sheets can be used to manipulate the layout within a portlet, but you can't control the overall size. All you can do is develop a portlet that will look good in any environment.

Having said that, if your portlet is given 400x400 pixels, there's no reason you can't just put the whole thing in a table 200x200 in size. There'll just be alot of whitespace, that's all.

-Cameron McKenzie
Jonas X. Yuan
Ranch Hand

Joined: May 18, 2008
Posts: 108
In Liferay, the size of portlet can be controlled by Layouts.

Here is an real example:

Books: Liferay Portal 6.1 Systems Development
Don't get me started about those stupid light bulbs.
subject: How to control the size of the portlet?
Similar Threads
How to convert Jboss EAR to Portlet?
portlet communication
portlet size depends on browser size?
size of JButton