History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1784
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Nils-Helge Garli
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
uPortal

JSR168 portlet received wrong WindowState after beeing minimized and a WindowState change occurs in a different portlet

Created: 03/Aug/07 04:22 PM   Updated: 20/Oct/08 12:54 PM
Component/s: Portlet Container
Affects Version/s: 2.6.0 RC2, 2.5.3.1, 2.6.0 GA, 2.6.1 RC1, 2.6.1 RC2
Fix Version/s: 3.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Java Source File TestPortlet.java (0.7 kb)



 Description  « Hide
Having two JSR168 portlets on the same page, if you minimize one of them, then minimize the second one, the first one is no longer minimized, it receives WindowState.NORMAL from it's portlet request. Example code:

package test;

import java.io.IOException;

import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

public class TestPortlet extends GenericPortlet {


protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
response.setContentType("text/html");
response.getWriter().write("<H2>Hello world!</H2>");
}


public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException {
getPortletContext().log("MY WINDOW STATE IS: " + request.getWindowState());
super.render(request, response);
}

}


Place this and another portlet (e.g. the Google portlet or one of the other portlets that comes with the quick start release) on the same page and observe the output in the console/logs (and how it appears in the browser).

 All   Comments   Work Log   Change History      Sort Order:
Nils-Helge Garli [03/Aug/07 04:22 PM]
Example portlet

Nils-Helge Garli [03/Aug/07 04:24 PM]
I should add that the portlet window controls are used to switch window states.

tom [05/Aug/07 08:03 PM]
Also to see the bug in terms of the functionality make the following changes to the portlet.xml

<expiration-cache>-1</expiration-cache>

and also

<expiration-cache>0</expiration-cache>

You should be able to see two contrasting functionalities, specially with regards to the minimize functionality,
Do the testing with two portlets and in portlet.xml <expiration-cache> with either having -1 in both or 0.


Eric Dalquist [15/Jan/08 10:02 PM]
This will be resolved in uPortal 3.0. Due to the nature of the changes that would be needed in 2.x I do not know if it will be fixed there.