Foren
Custom portlet in MAXIMIZED mode
Rupesh Chotai, geändert vor 11 Jahren.
Custom portlet in MAXIMIZED mode
Regular Member Beiträge: 163 Beitrittsdatum: 23.03.11 Neueste Beiträge
Hi,
I am trying to display my portlet in full screen mode. In my portlet class, which is extending MVCPortlet, I have added below code:
However whenever I start the portal, this portlet is not displayed in full screen.
I tried options like adding my portlet id in portal-ext.properties portlet.add.default.resource.check.whitelist. But no success.
Need suggestion / help.
Thanks.
I am trying to display my portlet in full screen mode. In my portlet class, which is extending MVCPortlet, I have added below code:
@Override
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) {
try {
actionResponse.setWindowState(WindowState.MAXIMIZED);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
throws PortletException, IOException {
...
...
PrintWriter out = resourceResponse.getWriter();
JSONObject jsonObject=new JSONObject();
jsonObject.put("results",new JSONArray());
jsonObject.put("data",new JSONArray());
jsonObject.put("misc",new JSONArray());
out.write(results);
....
}
However whenever I start the portal, this portlet is not displayed in full screen.
I tried options like adding my portlet id in portal-ext.properties portlet.add.default.resource.check.whitelist. But no success.
Need suggestion / help.
Thanks.
Rupesh Chotai, geändert vor 11 Jahren.
RE: Custom portlet in MAXIMIZED mode
Regular Member Beiträge: 163 Beitrittsdatum: 23.03.11 Neueste Beiträge
Hi,
I have added 1-column layout to the page which causes portlet to occupy whole width of the page but not the height. Any idea how to make this custom portlet occupy whole screen.
I have added 1-column layout to the page which causes portlet to occupy whole width of the page but not the height. Any idea how to make this custom portlet occupy whole screen.