
| Key: |
UP-1784
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Nils-Helge Garli
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
File Attachments:
|
1.
TestPortlet.java (0.7 kb)
|
|
|
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).
|
|
Description
|
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). |
Show » |
|