Setting height of a maximized Weblogic Portlet

Posted on 2006-04-18
Last Modified: 2013-12-10
I am developing against Weblogic 8.1 with Weblogic Workshop.

I have a book page with two portlets on it, in a single column. Each portlet takes up 400 px, and the whole page is 800px in height. The user is allowed to maximize either portlet.

When I click the Maximize button on a portlet, the page is redrawn with only that portlet showing. The portlet's width expands to fill the entire page, but the portlet's height is still constrained to 400 px. I would like the portlet to be smart enough to manage its own height, just like it does with the width.

I have tried experimenting with CSS tags (overflow, height, etc) and providing them as the Presentation Style of the portlet, but these CSS style attributes are applied in both the NORMAL and MAXIMIZED states of the Portlet.

Is there a way to assign a fixed height of a Weblogic portlet in NORMAL mode, but allow it to fill all available space in MAXIMIZED mode?

Thanks for any help.
Question by:buri
    LVL 11

    Expert Comment

    Hi buri,

    It cannot be configured from portlet properties.
    Please check jsp file. Is there any property of html tag that fix height of html.
    The width is freely expanded because there is no property set by html tag.

    You can test jsp in browser without portlet/portal framework and resize browser.

    Or you paste source of html in browser here and I can help you analysis.

    Hope this would help.

    Author Comment

    The JSP is pure HTML and has no style attributes. The height is fixed at a particular size by the CSS stylesheet referenced in the MDR.portal file (for layout management when both portlets are sharing the space). I guess a better question might be, can I tell Weblogic to use stylesheet A (with fixed height) in the NORMAL state of the portlet but use stylesheet B (with no height parameters) in the MAXIMIZED state.


    Author Comment

    Comment did not work. Please do not mark as accepted.

    Accepted Solution

    PAQed with no points refunded (of 250)

    Community Support Moderator

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now