PDA

View Full Version : Portlet Rendering


LINEMAN78
10-22-2008, 02:22 PM
I am putting a flash object inside a portlet and making it width="100%", and the swf needs to be redrawn in order to get the changes to the size of the window. In order to do this the contents of the portlet must be re-rendered. If I am to drag the portlet and drop it back into the exact same place it was before, it re-renders the content and applys the changes. I am overriding the layout() function for portal, so I am able to perform actions when the size of the portlet changes, but I can't seem to figure out what function I need to call to rerender the contents.

LINEMAN78
10-22-2008, 02:28 PM
never mind, just figured it out.

public boolean layout(){
boolean response = super.layout();
this.onDetach();
this.onAttach();
return response;
}