Foros de discusión

Custom portlet in MAXIMIZED mode

Rupesh Chotai, modificado hace 11 años.

Custom portlet in MAXIMIZED mode

Regular Member Mensajes: 163 Fecha de incorporación: 23/03/11 Mensajes recientes
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:


@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, modificado hace 11 años.

RE: Custom portlet in MAXIMIZED mode

Regular Member Mensajes: 163 Fecha de incorporación: 23/03/11 Mensajes recientes
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.