论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
Facundo Mateo
Maximize portlet from jsf
2008年6月9日 上午5:12
答复

Facundo Mateo

等级: New Member

帖子: 8

加入日期: 2008年6月6日

最近的帖子

How can I maximize the portlet from a jsf backing bean?

Thanks
Joel Kozikowski
RE: Maximize portlet from jsf
2008年6月9日 上午7:41
答复

Joel Kozikowski

等级: Expert

帖子: 405

加入日期: 2006年6月27日

最近的帖子

There is a "setWindowState()" method that is part of the javax.portlet.ActionResponse interface. So, its really a matter of getting a hold of an "action response" object. The "action response" object is an interface implemented in Liferay by the same object that implements the javax.portlet.PortletResponse interface, which in turn can be retrieved from the external context's getResponse() method. So, for JSF, you are looking at:



 1
 2   FacesContext facesContext = FacesContext.getCurrentInstance();
 3
 4   javax.faces.context.ExternalContext externalContext = facesContext.getExternalContext();
 5
 6   javax.portlet.PortletResponse portletResponse =
 7        (javax.portlet.PortletResponse)externalContext.getResponse();
 8
 9   javax.portlet.ActionResponse actionResponse =
10        (javax.portlet.ActionResponse)portletResponse;
11
12   actionResponse.setWindowState(javax.portlet.WindowState.MAXIMIZED);
Facundo Mateo
RE: Maximize portlet from jsf
2008年6月9日 上午8:39
答复

Facundo Mateo

等级: New Member

帖子: 8

加入日期: 2008年6月6日

最近的帖子

Thanks for your reploy Joel. I found that very usefull.
Is there any api manual which explains how to use portal libraries. Until now I have found just the api but It hasn't too much explanations.
Joel Kozikowski
RE: Maximize portlet from jsf
2008年6月10日 上午8:23
答复

Joel Kozikowski

等级: Expert

帖子: 405

加入日期: 2006年6月27日

最近的帖子

Facundo Mateo:
Is there any api manual which explains how to use portal libraries.


Unfortunately, no. The lack of JavaDocs is a screaming hole in the Liferay code base. The only thing you can do is study the source code. Lots of "poking around." The lines of code I gave you was about 3 hours of my personal searching I had done several months ago.
Joel Kozikowski
RE: Maximize portlet from jsf
2008年6月10日 上午9:43
答复

Joel Kozikowski

等级: Expert

帖子: 405

加入日期: 2006年6月27日

最近的帖子

Joel Kozikowski:
The lack of JavaDocs is a screaming hole in the Liferay code base.


While the above quote is true (Liferay desparately needs Javadocs), I should point out that in this particular instance, virtually all of the code in the sample is using JSR168 portlet API code. NONE of it is Liferay code. Don't forget that when programming portlets, there is a lot of documentation out on the net regarding portlet development in general.

One resource I found helpful early on was the on-line book on portlet development: http://www.manning.com/hepper/
Facundo Mateo
RE: Maximize portlet from jsf
2008年6月12日 上午5:22
答复

Facundo Mateo

等级: New Member

帖子: 8

加入日期: 2008年6月6日

最近的帖子

That's a good resource to learn about portlets. I have found it very usefull.

I've another question may be you have fight with this before. I've another page wich needs to have a back button arrow instead a minimize arrow. Is there any way to achieve this programatically.

Thanks, for your reply
Arun R K
RE: Maximize portlet from jsf
2008年12月23日 上午8:18
答复

Arun R K

等级: New Member

帖子: 6

加入日期: 2008年12月23日

最近的帖子

Hi joel,

i tried using this code but its giving a java.lang.ClassCastException

java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl

when i am trying to cast like

javax.portlet.ActionResponse actionResponse =
(javax.portlet.ActionResponse)portletResponse



Please help
Tobias Gindler
RE: Maximize portlet from jsf
2009年1月6日 上午6:27
答复

Tobias Gindler

等级: Junior Member

帖子: 71

加入日期: 2007年3月23日

最近的帖子

Hi Arun,

It seems that you are trying to set the window state at the render phase of the portlet.
This isn't possible, window state and portlet mode may only be changed at the portlets process action phase.

Therefore it can either be done at the portlets processAction method or at a jsf action method if you are using JSF.

Using the Portlet 2 API it is also possible to set the portlets window state and mode using events.

Best regards

Tobias
Tobias Amon
RE: Maximize portlet from jsf
2009年1月6日 上午6:50
答复

Tobias Amon

等级: Liferay Master

帖子: 549

加入日期: 2007年8月8日

最近的帖子

Hi,

this is not possible the way you want to do it right now.

I have a more or less working solution for the issue.

First you have to get the maximizing url of your portlet. I did that by extending the JSF portlet class and storing the value in the session as attribute:

1public void render(RenderRequest renderRequest,
2        RenderResponse renderResponse) throws IOException, PortletException {
3            PortletSession pSess = renderRequest.getPortletSession();
4            PortletURL maxUrl = renderResponse.createRenderURL();
5            maxUrl.setWindowState(WindowState.MAXIMIZED);
6            log.debug("The maxUrl: " + maxUrl.toString());
7            pSess.setAttribute("maxUrl", maxUrl.toString());
8}


In your portlets you can then get the session and extract the max URL. In your JSF page you can then create an external link which will maximize your portlet.

Please note that you cannot navigate to a different JSF page in this case...

kind regards
Tobias
Arun R K
RE: Maximize portlet from jsf
2009年1月11日 上午9:08
答复

Arun R K

等级: New Member

帖子: 6

加入日期: 2008年12月23日

最近的帖子

Hi All,


Thanks Gindler and Amon for your reply . Sorry for the delay.I will try to explain my problem in detail.

I am using liferay 5.2 +icefaces 1.7.2 combination.

in the left hand side of the page ,i have a Link portlet which contains two links. say Link-one and Link- two.
In the right hand side of the page i have two portlets A and B.

on click of the Link-one in the left hand side portlet i need to minimize portlet B and maximize portlet A.
on click of the Link- two. in left hand side i need to minimize portlet A maximize portlet B.

right now i am using IPC provided by ice faces and able to re-render potlet A and portlet B from left portlet.
But the problem is with minimizing and maximizing the portlet A and B. Since this is not an action event.

OR
i want to HIDE the portlet in the right hand side based on the link i clicked.

i will place two portletes on right hand side i need to HIDE one and SHOW another based on the link click in left hand side portlet .
is it something called (WINDOW SHADING) ?. Please advice

Thanks,
Arun R K
Tobias Amon
RE: Maximize portlet from jsf
2009年1月11日 下午11:57
答复

Tobias Amon

等级: Liferay Master

帖子: 549

加入日期: 2007年8月8日

最近的帖子

Hi,

my solution should work in your scenario.

When the IPC-method on portlet A is called, simply get Portal A's Max-URL and make a redirect to this page. All other portlets on the page will be hidden, even the Link Portlet. So you don't have to minimize Portlet B in this case.

kind regards
Tobias
Arun R K
RE: Maximize portlet from jsf
2009年2月5日 上午6:40
答复

Arun R K

等级: New Member

帖子: 6

加入日期: 2008年12月23日

最近的帖子

the solution works !!!!!!!

Thank u
Nabeil Ahmed
RE: Maximize portlet from jsf
2010年9月28日 上午7:10
答复

Nabeil Ahmed

等级: New Member

帖子: 1

加入日期: 2010年9月28日

最近的帖子

Hi, i m facing the same problem, can you please explain more that where should i put this method? and is it a call back method ?
should i write it in my Managed Bean class.
which class should i extend?

i also want to hide the portlet on a click of commandLink .

Thank you,
regards,
nabeil
Moayad Abu Jaber
RE: Maximize portlet from jsf
2011年6月14日 上午7:35
答复

Moayad Abu Jaber

等级: New Member

帖子: 5

加入日期: 2011年4月13日

最近的帖子

I do exactly what you did above!!
but I faced error please your help!


check the error:

java.lang.NullPointerException
at com.icesoft.faces.context.DOMContext.removeChildrenByTagName(DOMContext.java:439)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.encodeChildren(TableRenderer.java:583)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:346)
at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:84)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
at com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:308)
at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.writeTabCell(PanelTabSetRenderer.java:995)
at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.encodeEnd(PanelTabSetRenderer.java:411)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:129)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:390)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at org.portletfaces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:524)
at org.portletfaces.bridge.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:131)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:119)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:635)
at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:747)
at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:504)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:871)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:613)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:232)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:153)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:121)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:134)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:110)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:222)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:442)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:240)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)



My scenario : I have list of article links each article will navigate me to other page to show article itself
I change the window state from links action listener

any suggestion plz!!
best regards,
Moayad Abu Jaber
Johann Kneringer
RE: Maximize portlet from jsf
2013年8月12日 上午1:47
答复

Johann Kneringer

等级: Junior Member

帖子: 40

加入日期: 2011年11月10日

最近的帖子

its pretty easy...just solved it by

PortletHelper portletHelper = new PortletHelperImpl();
portletHelper.setWindowStateToMaximized();

I found this code of lines in the portlet right here:

http://issues.liferay.com/browse/FACES-232