You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rogerio Pereira <ro...@gmail.com> on 2006/07/27 15:33:31 UTC
t:popup and liferay portlets
Hi guys,
Somebody got this error with t:popup component and liferay?
SEVERE: Error Rendering View[/mail-view.xhtml]
java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:479)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:467)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:373)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:391)
at org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript(
HtmlPopupRenderer.java:117)
at org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(
HtmlPopupRenderer.java:64)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
:536)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
RendererUtils.java:443)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(
RendererUtils.java:420)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
RendererUtils.java:441)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(
HtmlTableRenderer.java:588)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
(HtmlTableRendererBase.java:299)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(
HtmlTableRenderer.java:496)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
(HtmlTableRendererBase.java:275)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
(HtmlTableRendererBase.java:123)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(
HtmlTableRenderer.java:171)
at javax.faces.component.UIComponentBase.encodeChildren(
UIComponentBase.java:524)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:234)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
at com.sun.facelets.FaceletViewHandler.renderView(
FaceletViewHandler.java:580)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java
:384)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(
MyFacesGenericPortlet.java:403)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(
MyFacesGenericPortlet.java:265)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
at br.eti.faces.mail.MailPortlet.render(MailPortlet.java:43)
at com.liferay.portal.shared.servlet.PortletServlet.service(
PortletServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
at com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
(render_005fportlet_jsp.java:649)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:925)
at
com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet
(RuntimePortletUtil.java:121)
at
com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
(PortletColumnLogic.java:76)
at
com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn
(TemplateProcessor.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(
UberspectImpl.java:267)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(
ASTMethod.java:197)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(
ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(
ASTReference.java:220)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(
SimpleNode.java:230)
at org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
at org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
at
com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
(RuntimePortletUtil.java:163)
at
com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
(RuntimePortletUtil.java:144)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
(portlet_jsp.java:407)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
at org.apache.jsp.html.portal.layout_jsp._jspService
(layout_jsp.java:410)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolde
2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
at
org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService
(portal_005fnormal_jsp.java:907)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
at com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java:139)
at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
at
org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
(portal_jsp.java:460)
at org.apache.jsp.html.common.themes.portal_jsp._jspService
(portal_jsp.java:381)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
at com.liferay.portal.struts.PortalRequestProcessor.doForward(
PortalRequestProcessor.java:210)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(
TilesRequestProcessor.java:239)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
TilesRequestProcessor.java:302)
at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:241)
at com.liferay.portal.struts.PortalRequestProcessor.process(
PortalRequestProcessor.java:185)
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:717)
at com.liferay.portal.servlet.MainServlet.callParentService(
MainServlet.java:415)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:810)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
:77)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:91)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java
:131)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at com.liferay.filters.compression.CompressionFilter.doFilter(
CompressionFilter.java:112)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at
com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(
LayoutCacheFilter.java:197)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.jboss.jetty.Jetty.service(Jetty.java:456)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java
:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2006-07-27 13:22:09,843 ERROR [
com.liferay.portal.shared.servlet.PortletServlet]
com.liferay.portlet.RenderResponseImpl
2006-07-27 13:22:09,843 ERROR [
portal-web.docroot.html.portal.render_portlet.jsp]
java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:479)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:467)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:373)
at
org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:391)
at org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript(
HtmlPopupRenderer.java:117)
at org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(
HtmlPopupRenderer.java:64)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
:536)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
RendererUtils.java:443)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(
RendererUtils.java:420)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
RendererUtils.java:441)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(
HtmlTableRenderer.java:588)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
(HtmlTableRendererBase.java:299)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(
HtmlTableRenderer.java:496)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
(HtmlTableRendererBase.java:275)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
(HtmlTableRendererBase.java:123)
at
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(
HtmlTableRenderer.java:171)
at javax.faces.component.UIComponentBase.encodeChildren(
UIComponentBase.java:524)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:234)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
--
Yours truly (Atenciosamente),
Rogério
Re: t:popup and liferay portlets
Posted by Mike Kienenberger <mk...@gmail.com>.
On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> What I want to say is that with Streaming Add Ressource, you don't
> need the phase listener for anything but serving out resources anymore
> - you don't touch the generated HTML.
>
> Or do I get you completely wrong?
No, it sounds like I'm the one that's confused. If you're not
touching the generated html, then it doesn't matter.
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
What I want to say is that with Streaming Add Ressource, you don't
need the phase listener for anything but serving out resources anymore
- you don't touch the generated HTML.
Or do I get you completely wrong?
regards,
Martin
On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > which replacement do you mean? You mean buffering the HTML file and
> > then adding scripts and styles to the header? With streaming add
> > ressource, we don't do this anymore...
>
> By "post-renderResponse phase listener replacement", I mean the phase
> listener that replaces the servlet filter. I'm going to call the
> translation that this phase listener does "servlet-filter activities"
> for reference.
>
> It seems to me that an end-user (or component writer) cannot create a
> post-renderResponse phase listener as they have no way of knowing if
> they're in the "before servlet-filter activities" or "after
> servlet-filter activities" part of the phase, and the generated html
> will look different in each case.
>
> > On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> > > On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > > > Portlets and the extension filter don't work together.
> > > >
> > > > I've been reiterating that we need to change to a phase-listener from
> > > > the filter, but there has been no one investing the work so far.
> > >
> > > Hey Martin.
> > >
> > > How will you guarantee that a post-renderResponse phase listener
> > > replacement runs after all of the other post-renderResponse phase
> > > listeners that might expect the rendered data format to be in an
> > > unprocessed state?
> > >
> > > Any time someone suggests that the framework implement something as a
> > > phase-listener, I get nervous since you're adding some non-predictable
> > > behavior based on ordering of the phase-listeners registered at any
> > > given run.
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
Ah, ok.
And how do you register the ExtensionFilter? It's a Servlet-Filter,
right? Do you alternatively register a Portlet-Filter?
regards,
Martin
On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> This change will be specific to myfaces components, not for my own
> components, and to solve this is need remove some uses of
> HttpServletResponse inside writePositionedInfo methods that just does a call
> to response.encodeURL (this.getResourceUri()) and replace with
> FacesContext.getCurrentInstance().getExternalContext().encodeResourceURL(this.getResourceUri());
>
> I think with this we will get resource being served in both situations
> ServletContext and PortletContext.
>
> I tried this (in PortletContext) and works, i'll test the same thing in
> ServletContext...
>
> 2006/7/27, Martin Marinschek <martin.marinschek@gmail.com >:
> > Hmm, yes.
> >
> > And how do you serve out the resources?
> >
> > regards,
> >
> > Martin
> >
> > On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> > > I think that i can fix this bug related to t:popup (and others) by
> changing
> > > few things in StreamingAddResource.
> > >
> > > 2006/7/27, Mike Kienenberger <mkienenb@gmail.com >:
> > > > On 7/27/06, Martin Marinschek < martin.marinschek@gmail.com > wrote:
> > > > > which replacement do you mean? You mean buffering the HTML file and
> > > > > then adding scripts and styles to the header? With streaming add
> > > > > ressource, we don't do this anymore...
> > > >
> > > > By "post-renderResponse phase listener replacement", I mean the phase
> > > > listener that replaces the servlet filter. I'm going to call the
> > > > translation that this phase listener does "servlet-filter activities"
> > > > for reference.
> > > >
> > > > It seems to me that an end-user (or component writer) cannot create a
> > > > post-renderResponse phase listener as they have no way of knowing if
> > > > they're in the "before servlet-filter activities" or "after
> > > > servlet-filter activities" part of the phase, and the generated html
> > > > will look different in each case.
> > > >
> > > > > On 7/27/06, Mike Kienenberger < mkienenb@gmail.com> wrote:
> > > > > > On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > > > > > > Portlets and the extension filter don't work together.
> > > > > > >
> > > > > > > I've been reiterating that we need to change to a phase-listener
> > > from
> > > > > > > the filter, but there has been no one investing the work so
> far.
> > > > > >
> > > > > > Hey Martin.
> > > > > >
> > > > > > How will you guarantee that a post-renderResponse phase listener
> > > > > > replacement runs after all of the other post-renderResponse phase
> > > > > > listeners that might expect the rendered data format to be in an
> > > > > > unprocessed state?
> > > > > >
> > > > > > Any time someone suggests that the framework implement something
> as a
> > > > > > phase-listener, I get nervous since you're adding some
> non-predictable
> > > > > > behavior based on ordering of the phase-listeners registered at
> any
> > > > > > given run.
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > http://www.irian.at
> > > > >
> > > > > Your JSF powerhouse -
> > > > > JSF Consulting, Development and
> > > > > Courses in English and German
> > > > >
> > > > > Professional Support for Apache MyFaces
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
Hmm, yes.
And how do you serve out the resources?
regards,
Martin
On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> I think that i can fix this bug related to t:popup (and others) by changing
> few things in StreamingAddResource.
>
> 2006/7/27, Mike Kienenberger <mkienenb@gmail.com >:
> > On 7/27/06, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > which replacement do you mean? You mean buffering the HTML file and
> > > then adding scripts and styles to the header? With streaming add
> > > ressource, we don't do this anymore...
> >
> > By "post-renderResponse phase listener replacement", I mean the phase
> > listener that replaces the servlet filter. I'm going to call the
> > translation that this phase listener does "servlet-filter activities"
> > for reference.
> >
> > It seems to me that an end-user (or component writer) cannot create a
> > post-renderResponse phase listener as they have no way of knowing if
> > they're in the "before servlet-filter activities" or "after
> > servlet-filter activities" part of the phase, and the generated html
> > will look different in each case.
> >
> > > On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> > > > On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > > > > Portlets and the extension filter don't work together.
> > > > >
> > > > > I've been reiterating that we need to change to a phase-listener
> from
> > > > > the filter, but there has been no one investing the work so far.
> > > >
> > > > Hey Martin.
> > > >
> > > > How will you guarantee that a post-renderResponse phase listener
> > > > replacement runs after all of the other post-renderResponse phase
> > > > listeners that might expect the rendered data format to be in an
> > > > unprocessed state?
> > > >
> > > > Any time someone suggests that the framework implement something as a
> > > > phase-listener, I get nervous since you're adding some non-predictable
> > > > behavior based on ordering of the phase-listeners registered at any
> > > > given run.
> > > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
>
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Rogerio Pereira <ro...@gmail.com>.
I think that i can fix this bug related to t:popup (and others) by changing
few things in StreamingAddResource.
2006/7/27, Mike Kienenberger <mk...@gmail.com>:
>
> On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > which replacement do you mean? You mean buffering the HTML file and
> > then adding scripts and styles to the header? With streaming add
> > ressource, we don't do this anymore...
>
> By "post-renderResponse phase listener replacement", I mean the phase
> listener that replaces the servlet filter. I'm going to call the
> translation that this phase listener does "servlet-filter activities"
> for reference.
>
> It seems to me that an end-user (or component writer) cannot create a
> post-renderResponse phase listener as they have no way of knowing if
> they're in the "before servlet-filter activities" or "after
> servlet-filter activities" part of the phase, and the generated html
> will look different in each case.
>
> > On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> > > On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > > > Portlets and the extension filter don't work together.
> > > >
> > > > I've been reiterating that we need to change to a phase-listener
> from
> > > > the filter, but there has been no one investing the work so far.
> > >
> > > Hey Martin.
> > >
> > > How will you guarantee that a post-renderResponse phase listener
> > > replacement runs after all of the other post-renderResponse phase
> > > listeners that might expect the rendered data format to be in an
> > > unprocessed state?
> > >
> > > Any time someone suggests that the framework implement something as a
> > > phase-listener, I get nervous since you're adding some non-predictable
> > > behavior based on ordering of the phase-listeners registered at any
> > > given run.
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
--
Yours truly (Atenciosamente),
Rogério
Re: t:popup and liferay portlets
Posted by Mike Kienenberger <mk...@gmail.com>.
On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> which replacement do you mean? You mean buffering the HTML file and
> then adding scripts and styles to the header? With streaming add
> ressource, we don't do this anymore...
By "post-renderResponse phase listener replacement", I mean the phase
listener that replaces the servlet filter. I'm going to call the
translation that this phase listener does "servlet-filter activities"
for reference.
It seems to me that an end-user (or component writer) cannot create a
post-renderResponse phase listener as they have no way of knowing if
they're in the "before servlet-filter activities" or "after
servlet-filter activities" part of the phase, and the generated html
will look different in each case.
> On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> > On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > > Portlets and the extension filter don't work together.
> > >
> > > I've been reiterating that we need to change to a phase-listener from
> > > the filter, but there has been no one investing the work so far.
> >
> > Hey Martin.
> >
> > How will you guarantee that a post-renderResponse phase listener
> > replacement runs after all of the other post-renderResponse phase
> > listeners that might expect the rendered data format to be in an
> > unprocessed state?
> >
> > Any time someone suggests that the framework implement something as a
> > phase-listener, I get nervous since you're adding some non-predictable
> > behavior based on ordering of the phase-listeners registered at any
> > given run.
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
Hi Mike,
which replacement do you mean? You mean buffering the HTML file and
then adding scripts and styles to the header? With streaming add
ressource, we don't do this anymore...
regards,
Martin
On 7/27/06, Mike Kienenberger <mk...@gmail.com> wrote:
> On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> > Portlets and the extension filter don't work together.
> >
> > I've been reiterating that we need to change to a phase-listener from
> > the filter, but there has been no one investing the work so far.
>
> Hey Martin.
>
> How will you guarantee that a post-renderResponse phase listener
> replacement runs after all of the other post-renderResponse phase
> listeners that might expect the rendered data format to be in an
> unprocessed state?
>
> Any time someone suggests that the framework implement something as a
> phase-listener, I get nervous since you're adding some non-predictable
> behavior based on ordering of the phase-listeners registered at any
> given run.
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Mike Kienenberger <mk...@gmail.com>.
On 7/27/06, Martin Marinschek <ma...@gmail.com> wrote:
> Portlets and the extension filter don't work together.
>
> I've been reiterating that we need to change to a phase-listener from
> the filter, but there has been no one investing the work so far.
Hey Martin.
How will you guarantee that a post-renderResponse phase listener
replacement runs after all of the other post-renderResponse phase
listeners that might expect the rendered data format to be in an
unprocessed state?
Any time someone suggests that the framework implement something as a
phase-listener, I get nervous since you're adding some non-predictable
behavior based on ordering of the phase-listeners registered at any
given run.
Re: t:popup and liferay portlets
Posted by Rogerio Pereira <ro...@gmail.com>.
all calls to response.resouceURL(url) should be replaced by
<file:///C:/Rogerio/projetos/java/mail-portlet/mail-portlet.war>
FacesContext.getCurrentInstance
().getExternalContext().encodeResourceURL(url)
2006/7/27, Rogerio Pereira <ro...@gmail.com>:
>
> i tried use weblets but i'm getting some errors that i'll look later, are
> you thiking in a colaboration between phaselistener and StreamingAddResouce?
>
>
> 2006/7/27, Martin Marinschek < martin.marinschek@gmail.com>:
> >
> > ---------- Forwarded message ----------
> > From: Martin Marinschek <ma...@gmail.com>
> > Date: Jul 27, 2006 3:47 PM
> > Subject: Re: t:popup and liferay portlets
> > To: rogerio.araujo@gmail.com
> >
> >
> > I think you'd need to go with Mario's StreamingAddRessource for this
> > to work - not with the DefaultAddRessource, and use this optional in a
> > phase-listener. This should be straightforward.
> >
> > What would be more complicated (or more work, at least) would be to
> > serve out the resources from the phase-listener instead of the filter.
> > Thing is that weblets might be interesting for this as well.
> >
> > regards,
> >
> > Martin
> >
> > On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> > > Hehehe, sure! But i need some time to get the main idea of AddResouce
> > stuff
> > > before do this.
> > >
> > > 2006/7/27, Martin Marinschek <martin.marinschek@gmail.com >:
> > > > Portlets and the extension filter don't work together.
> > > >
> > > > I've been reiterating that we need to change to a phase-listener
> > from
> > > > the filter, but there has been no one investing the work so far.
> > > >
> > > > Interested?
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 7/27/06, Rogerio Pereira <rogerio.araujo@gmail.com > wrote:
> > > > > Hi guys,
> > > > >
> > > > > Somebody got this error with t:popup component and liferay?
> > > > >
> > > > > SEVERE: Error Rendering View[/mail-view.xhtml]
> > > > > java.lang.ClassCastException :
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java :479)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:467)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:373)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:391)
> > > > > at
> > > > >
> > > org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > > (HtmlPopupRenderer.java:117)
> > > > > at
> > > > >
> > > org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > > (HtmlPopupRenderer.java:64)
> > > > > at
> > > > >
> > > javax.faces.component.UIComponentBase.encodeEnd (UIComponentBase.java
> > :536)
> > > > > at
> > > > >
> > > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > > (RendererUtils.java:443)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren
> > (RendererUtils.java:420)
> > > > > at
> > > > >
> > > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java
> > > > > :441)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody
> > (HtmlTableRenderer.java:588)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > > (HtmlTableRendererBase.java
> > > > > :299)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild
> > (HtmlTableRenderer.java:496)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > > (HtmlTableRendererBase.java
> > > > > :275)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
> > (HtmlTableRendererBase.java :123)
> > > > > at
> > > > >
> > > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > > (HtmlTableRenderer.java
> > > > > :171)
> > > > > at
> > > > >
> > > javax.faces.component.UIComponentBase.encodeChildren(
> > UIComponentBase.java:524)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > > ComponentSupport.java :234)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > > com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java
> > :580)
> > > > > at
> > > org.apache.myfaces.lifecycle.LifecycleImpl.render
> > > > > (LifecycleImpl.java:384)
> > > > > at
> > > > >
> > > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(
> > MyFacesGenericPortlet.java:403)
> > > > > at
> > > > >
> > > org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(
> > MyFacesGenericPortlet.java
> > > :265)
> > > > > at
> > > > >
> > > javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> > > > > at
> > > > >
> > > javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> > > > > at
> > > > > br.eti.faces.mail.MailPortlet.render
> > > (MailPortlet.java:43)
> > > > > at
> > > > >
> > > com.liferay.portal.shared.servlet.PortletServlet.service(
> > PortletServlet.java:83)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
> > > > > :428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter (
> > WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> > :77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> > WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > > (Dispatcher.java:163)
> > > > > at
> > > > >
> > > com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
> > > > > at
> > > > >
> > > com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
> > > > > at
> > > > >
> > > org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
> > > > > (render_005fportlet_jsp.java:649)
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :94)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service
> > > > > ( JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > ( ServletHolder.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:830)
> > > > > at
> > > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java :286)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at com.liferay.portal.util.PortalUtil.renderPortlet
> > > > > (PortalUtil.java :925)
> > > > > at
> > > > >
> > >
> > com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet
> > (RuntimePortletUtil.java:121)
> > > > > at
> > > > >
> > >
> > com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
> > > > > (PortletColumnLogic.java:76)
> > > > > at
> > > > >
> > >
> > com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn
> > > (TemplateProcessor.java:62)
> > > > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > > at
> > > > >
> > > sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java :39)
> > > > > at
> > > > >
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > > > > at java.lang.reflect.Method.invoke (Method.java:585)
> > > > > at
> > > > >
> > >
> > org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke
> > > (UberspectImpl.java:267)
> > > > > at
> > > > >
> > > org.apache.velocity.runtime.parser.node.ASTMethod.execute (
> > ASTMethod.java:197)
> > > > > at
> > > > >
> > > org.apache.velocity.runtime.parser.node.ASTReference.execute(
> > ASTReference.java
> > > :175)
> > > > > at
> > > > >
> > > org.apache.velocity.runtime.parser.node.ASTReference.render (
> > ASTReference.java:220)
> > > > > at
> > > > >
> > > org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > > > (SimpleNode.java:230)
> > > > > at
> > > > >
> > > org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
> > > > > at
> > > > >
> > > org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
> > > > > at
> > > > >
> > >
> > com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> > > > > (RuntimePortletUtil.java:163)
> > > > > at
> > > > >
> > >
> > com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(
> > RuntimePortletUtil.java:144)
> > > > > at
> > > > >
> > > org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
> > > > > (portlet_jsp.java:407)
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service
> > > > > (JspServletWrapper.java:324)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> >
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.service
> > > (JspServlet.java:236)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter (
> > WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> > :77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter (
> > WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at com.liferay.taglib.util.IncludeTag.doEndTag
> > > > > (IncludeTag.java:63)
> > > > > at
> > > > >
> > > org.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:410)
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServletWrapper.service (
> > JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at org.apache.jasper.servlet.JspServlet.service
> > > > > (JspServlet.java:236)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > (ServletHolde
> > > > > 2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java :830)
> > > > > at
> > > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > > (Dispatcher.java:163)
> > > > > at
> > > > >
> > > com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
> > > > > at
> > > > >
> > >
> > org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService(portal_005fnormal_jsp.java:907)
> >
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java :810)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServletWrapper.service
> > > (JspServletWrapper.java
> > > > > :324)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java
> > :292)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > > > at
> > > > > javax.servlet.http.HttpServlet.service( HttpServlet.java
> > > > > :810)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:830)
> > > > > at
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> > WebApplicationHandler.java
> > > > > :471)
> > > > > at
> > > > > org.mortbay.jetty.servlet.Dispatcher.dispatch
> > > (Dispatcher.java:286)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at
> > > > >
> > > com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java
> > > > > :139)
> > > > > at
> > > > >
> > > com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
> > > > > at
> > > > >
> > > com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
> > > > > at
> > > > >
> > >
> > org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
> > > > > (portal_jsp.java:460)
> > > > > at
> > > > >
> > > org.apache.jsp.html.common.themes.portal_jsp._jspService
> > (portal_jsp.java:381)
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServletWrapper.service(
> > JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at org.apache.jasper.servlet.JspServlet.service
> > > > > (JspServlet.java:236)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > (ServletHolder.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:830)
> > > > > at
> > > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java
> > > > > :821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.forward
> > > > > (Dispatcher.java:171)
> > > > > at
> > > > >
> > > com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
> > > > > at
> > > > >
> > > com.liferay.portal.struts.PortalRequestProcessor.doForward (
> > PortalRequestProcessor.java:210)
> > > > > at
> > > > >
> > > org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> > > > > (TilesRequestProcessor.java:239)
> > > > > at
> > > > >
> > > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
> > TilesRequestProcessor.java:302)
> > > > > at
> > > > > org.apache.struts.action.RequestProcessor.process
> > > (RequestProcessor.java
> > > > > :241)
> > > > > at
> > > > >
> > > com.liferay.portal.struts.PortalRequestProcessor.process(
> > PortalRequestProcessor.java:185)
> > > > > 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:717)
> > > > > at
> > > > >
> > > com.liferay.portal.servlet.MainServlet.callParentService
> > > ( MainServlet.java:415)
> > > > > at com.liferay.portal.servlet.MainServlet.service
> > > > > (MainServlet.java:810)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> > :77)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java
> > > > > :821)
> > > > > at
> > > > >
> > > com.liferay.filters.strip.StripFilter.doFilter (StripFilter.java:91)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> > > > > at com.liferay.filters.secure.SecureFilter.doFilter
> > > > > (SecureFilter.java:131)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > com.liferay.filters.compression.CompressionFilter.doFilter
> > > (CompressionFilter.java
> > > > > :112)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter (
> > WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> > com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter
> > > (LayoutCacheFilter.java
> > > > > :197)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
> > :568)
> > > > > at
> > > > >
> > > org.mortbay.http.HttpContext.handle (HttpContext.java:1530)
> > > > > at
> > > > >
> > > org.mortbay.jetty.servlet.WebApplicationContext.handle(
> > WebApplicationContext.java
> > > > > :633)
> > > > > at
> > > > >
> > > org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> > > > > at
> > > > > org.mortbay.http.HttpServer.service
> > > (HttpServer.java:909)
> > > > > at org.jboss.jetty.Jetty.service (Jetty.java:456)
> > > > > at org.mortbay.http.HttpConnection.service
> > > > > (HttpConnection.java:816)
> > > > > at
> > > > > org.mortbay.http.HttpConnection.handleNext
> > > ( HttpConnection.java:982)
> > > > > at
> > > > >
> > > org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> > > > > at org.mortbay.http.SocketListener.handleConnection
> > > > > ( SocketListener.java:244)
> > > > > at
> > > > >
> > > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> > > > > at
> > > > >
> > > org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:534)
> > > > > 2006-07-27 13:22:09,843 ERROR
> > > > > [com.liferay.portal.shared.servlet.PortletServlet ]
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > 2006-07-27 13:22:09,843 ERROR
> > > > > [portal-web.docroot.html.portal.render_portlet.jsp]
> > > > > java.lang.ClassCastException:
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:479)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:467)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:373)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:391)
> > > > > at
> > > > >
> > > org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > > (HtmlPopupRenderer.java:117)
> > > > > at
> > > > >
> > > org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > > (HtmlPopupRenderer.java:64)
> > > > > at
> > > > >
> > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
> > :536)
> > > > > at
> > > > >
> > > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > > (RendererUtils.java:443)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren
> > (RendererUtils.java:420)
> > > > > at
> > > > >
> > > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java
> > > > > :441)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(
> > HtmlTableRenderer.java:588)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > > (HtmlTableRendererBase.java
> > > > > :299)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild
> > (HtmlTableRenderer.java:496)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > > (HtmlTableRendererBase.java
> > > > > :275)
> > > > > at
> > > > >
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
> > (HtmlTableRendererBase.java :123)
> > > > > at
> > > > >
> > > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > > (HtmlTableRenderer.java
> > > > > :171)
> > > > > at
> > > > >
> > > javax.faces.component.UIComponentBase.encodeChildren(
> > UIComponentBase.java:524)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > > ComponentSupport.java :234)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Yours truly (Atenciosamente),
> > > > >
> > > > > Rogério
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>
--
Yours truly (Atenciosamente),
Rogério
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
Hi Rogerio,
I meant it for serving out resources - weblet uses a PhaseListener for
it, so maybe there are overlappings here.
regards,
Martin
On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> i tried use weblets but i'm getting some errors that i'll look later, are
> you thiking in a colaboration between phaselistener and StreamingAddResouce?
>
>
> 2006/7/27, Martin Marinschek < martin.marinschek@gmail.com>:
> > ---------- Forwarded message ----------
> > From: Martin Marinschek <ma...@gmail.com>
> > Date: Jul 27, 2006 3:47 PM
> > Subject: Re: t:popup and liferay portlets
> > To: rogerio.araujo@gmail.com
> >
> >
> > I think you'd need to go with Mario's StreamingAddRessource for this
> > to work - not with the DefaultAddRessource, and use this optional in a
> > phase-listener. This should be straightforward.
> >
> > What would be more complicated (or more work, at least) would be to
> > serve out the resources from the phase-listener instead of the filter.
> > Thing is that weblets might be interesting for this as well.
> >
> > regards,
> >
> > Martin
> >
> > On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> > > Hehehe, sure! But i need some time to get the main idea of AddResouce
> stuff
> > > before do this.
> > >
> > > 2006/7/27, Martin Marinschek <martin.marinschek@gmail.com >:
> > > > Portlets and the extension filter don't work together.
> > > >
> > > > I've been reiterating that we need to change to a phase-listener from
> > > > the filter, but there has been no one investing the work so far.
> > > >
> > > > Interested?
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 7/27/06, Rogerio Pereira <rogerio.araujo@gmail.com > wrote:
> > > > > Hi guys,
> > > > >
> > > > > Somebody got this error with t:popup component and liferay?
> > > > >
> > > > > SEVERE: Error Rendering View[/mail-view.xhtml]
> > > > > java.lang.ClassCastException :
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java :479)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:467)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:373)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:391)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > > (HtmlPopupRenderer.java:117)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > > (HtmlPopupRenderer.java:64)
> > > > > at
> > > > >
> > > javax.faces.component.UIComponentBase.encodeEnd
> (UIComponentBase.java:536)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > > (RendererUtils.java:443)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java
> > > > > :441)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > > (HtmlTableRendererBase.java
> > > > > :299)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > > (HtmlTableRendererBase.java
> > > > > :275)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java
> :123)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > > (HtmlTableRenderer.java
> > > > > :171)
> > > > > at
> > > > >
> > >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > > ComponentSupport.java :234)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > >
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
> > > > > at
> > > org.apache.myfaces.lifecycle.LifecycleImpl.render
> > > > > (LifecycleImpl.java:384)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:403)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java
> > > :265)
> > > > > at
> > > > >
> > >
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> > > > > at
> > > > >
> > >
> javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> > > > > at
> > > > > br.eti.faces.mail.MailPortlet.render
> > > (MailPortlet.java:43)
> > > > > at
> > > > >
> > >
> com.liferay.portal.shared.servlet.PortletServlet.service(PortletServlet.java:83)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
> > > > > :428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > > (Dispatcher.java:163)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
> > > > > (render_005fportlet_jsp.java:649)
> > > > > at
> > > > >
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :94)
> > > > > at
> > > > >
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service
> > > > > ( JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.service
> (JspServlet.java:236)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > ( ServletHolder.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> > > > > at
> > > > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java
> :286)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at
> com.liferay.portal.util.PortalUtil.renderPortlet
> > > > > (PortalUtil.java :925)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:121)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
> > > > > (PortletColumnLogic.java:76)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn
> > > (TemplateProcessor.java:62)
> > > > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > > at
> > > > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
> > > > > at
> > > > >
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > at java.lang.reflect.Method.invoke (Method.java:585)
> > > > > at
> > > > >
> > >
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke
> > > (UberspectImpl.java:267)
> > > > > at
> > > > >
> > >
> org.apache.velocity.runtime.parser.node.ASTMethod.execute
> (ASTMethod.java:197)
> > > > > at
> > > > >
> > >
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java
> > > :175)
> > > > > at
> > > > >
> > >
> org.apache.velocity.runtime.parser.node.ASTReference.render
> (ASTReference.java:220)
> > > > > at
> > > > >
> > >
> org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > > > (SimpleNode.java:230)
> > > > > at
> > > > >
> > >
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
> > > > > at
> > > > >
> > >
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> > > > > (RuntimePortletUtil.java:163)
> > > > > at
> > > > >
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> (RuntimePortletUtil.java:144)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
> > > > > (portlet_jsp.java:407)
> > > > > at
> > > > >
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at
> > > > >
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service
> > > > > (JspServletWrapper.java:324)
> > > > > at
> > > > >
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.service
> > > (JspServlet.java:236)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at com.liferay.taglib.util.IncludeTag.doEndTag
> > > > > (IncludeTag.java:63)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:410)
> > > > > at
> > > > >
> > > org.apache.jasper.runtime.HttpJspBase.service
> (HttpJspBase.java:94)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at org.apache.jasper.servlet.JspServlet.service
> > > > > (JspServlet.java:236)
> > > > > at
> > > > >
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > (ServletHolde
> > > > > 2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> :830)
> > > > > at
> > > > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > > (Dispatcher.java:163)
> > > > > at
> > > > >
> > >
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService(portal_005fnormal_jsp.java:907)
> > > > > at
> > > > >
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java
> :810)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServletWrapper.service
> > > (JspServletWrapper.java
> > > > > :324)
> > > > > at
> > > > >
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:292)
> > > > > at
> > > > >
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > > > at
> > > > > javax.servlet.http.HttpServlet.service(
> HttpServlet.java
> > > > > :810)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:830)
> > > > > at
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java
> > > > > :471)
> > > > > at
> > > > > org.mortbay.jetty.servlet.Dispatcher.dispatch
> > > (Dispatcher.java:286)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > > at
> > > > >
> > >
> com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java
> > > > > :139)
> > > > > at
> > > > >
> > >
> com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
> > > > > at
> > > > >
> > >
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
> > > > > (portal_jsp.java:460)
> > > > > at
> > > > >
> > >
> org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:381)
> > > > > at
> > > > >
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > > at javax.servlet.http.HttpServlet.service
> > > > > (HttpServlet.java:810)
> > > > > at
> > > > >
> > >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> > > > > at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:292)
> > > > > at org.apache.jasper.servlet.JspServlet.service
> > > > > (JspServlet.java:236)
> > > > > at
> > > > >
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > > at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > > (ServletHolder.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:830)
> > > > > at
> > > > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> > > > > :821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > > at org.mortbay.jetty.servlet.Dispatcher.forward
> > > > > (Dispatcher.java:171)
> > > > > at
> > > > >
> > >
> com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
> > > > > at
> > > > >
> > >
> com.liferay.portal.struts.PortalRequestProcessor.doForward
> (PortalRequestProcessor.java:210)
> > > > > at
> > > > >
> > >
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> > > > > (TilesRequestProcessor.java:239)
> > > > > at
> > > > >
> > >
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
> > > > > at
> > > > > org.apache.struts.action.RequestProcessor.process
> > > (RequestProcessor.java
> > > > > :241)
> > > > > at
> > > > >
> > >
> com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:185)
> > > > > 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:717)
> > > > > at
> > > > >
> > >
> com.liferay.portal.servlet.MainServlet.callParentService
> > > ( MainServlet.java:415)
> > > > > at
> com.liferay.portal.servlet.MainServlet.service
> > > > > (MainServlet.java:810)
> > > > > at
> > > > >
> > > javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > > (WebApplicationHandler.java:830)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> > > > > :821)
> > > > > at
> > > > >
> > > com.liferay.filters.strip.StripFilter.doFilter
> (StripFilter.java:91)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > > > at
> com.liferay.filters.secure.SecureFilter.doFilter
> > > > > (SecureFilter.java:131)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> com.liferay.filters.compression.CompressionFilter.doFilter
> > > (CompressionFilter.java
> > > > > :112)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter
> > > (LayoutCacheFilter.java
> > > > > :197)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> > > > > at
> > > > >
> > > org.mortbay.http.HttpContext.handle
> (HttpContext.java:1530)
> > > > > at
> > > > >
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java
> > > > > :633)
> > > > > at
> > > > >
> > >
> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> > > > > at
> > > > > org.mortbay.http.HttpServer.service
> > > (HttpServer.java:909)
> > > > > at org.jboss.jetty.Jetty.service (Jetty.java:456)
> > > > > at org.mortbay.http.HttpConnection.service
> > > > > (HttpConnection.java:816)
> > > > > at
> > > > > org.mortbay.http.HttpConnection.handleNext
> > > ( HttpConnection.java:982)
> > > > > at
> > > > >
> > >
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> > > > > at
> org.mortbay.http.SocketListener.handleConnection
> > > > > ( SocketListener.java:244)
> > > > > at
> > > > >
> > >
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> > > > > at
> > > > >
> > > org.mortbay.util.ThreadPool$PoolThread.run
> (ThreadPool.java:534)
> > > > > 2006-07-27 13:22:09,843 ERROR
> > > > > [com.liferay.portal.shared.servlet.PortletServlet ]
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > 2006-07-27 13:22:09,843 ERROR
> > > > > [portal-web.docroot.html.portal.render_portlet.jsp]
> > > > > java.lang.ClassCastException:
> > > > > com.liferay.portlet.RenderResponseImpl
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:479)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:467)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > > (StreamingAddResource.java:373)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:391)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > > (HtmlPopupRenderer.java:117)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > > (HtmlPopupRenderer.java:64)
> > > > > at
> > > > >
> > >
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > > (RendererUtils.java:443)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java
> > > > > :441)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody
> (HtmlTableRenderer.java:588)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > > (HtmlTableRendererBase.java
> > > > > :299)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > > (HtmlTableRendererBase.java
> > > > > :275)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java
> :123)
> > > > > at
> > > > >
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > > (HtmlTableRenderer.java
> > > > > :171)
> > > > > at
> > > > >
> > >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > > ComponentSupport.java :234)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > > (ComponentSupport.java:239)
> > > > > at
> > > > >
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Yours truly (Atenciosamente),
> > > > >
> > > > > Rogério
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Rogerio Pereira <ro...@gmail.com>.
i tried use weblets but i'm getting some errors that i'll look later, are
you thiking in a colaboration between phaselistener and StreamingAddResouce?
2006/7/27, Martin Marinschek <ma...@gmail.com>:
>
> ---------- Forwarded message ----------
> From: Martin Marinschek <ma...@gmail.com>
> Date: Jul 27, 2006 3:47 PM
> Subject: Re: t:popup and liferay portlets
> To: rogerio.araujo@gmail.com
>
>
> I think you'd need to go with Mario's StreamingAddRessource for this
> to work - not with the DefaultAddRessource, and use this optional in a
> phase-listener. This should be straightforward.
>
> What would be more complicated (or more work, at least) would be to
> serve out the resources from the phase-listener instead of the filter.
> Thing is that weblets might be interesting for this as well.
>
> regards,
>
> Martin
>
> On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> > Hehehe, sure! But i need some time to get the main idea of AddResouce
> stuff
> > before do this.
> >
> > 2006/7/27, Martin Marinschek <martin.marinschek@gmail.com >:
> > > Portlets and the extension filter don't work together.
> > >
> > > I've been reiterating that we need to change to a phase-listener from
> > > the filter, but there has been no one investing the work so far.
> > >
> > > Interested?
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 7/27/06, Rogerio Pereira <rogerio.araujo@gmail.com > wrote:
> > > > Hi guys,
> > > >
> > > > Somebody got this error with t:popup component and liferay?
> > > >
> > > > SEVERE: Error Rendering View[/mail-view.xhtml]
> > > > java.lang.ClassCastException:
> > > > com.liferay.portlet.RenderResponseImpl
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > (StreamingAddResource.java:479)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > (StreamingAddResource.java:467)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > (StreamingAddResource.java:373)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > (StreamingAddResource.java:391)
> > > > at
> > > >
> > org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > (HtmlPopupRenderer.java:117)
> > > > at
> > > >
> > org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > (HtmlPopupRenderer.java:64)
> > > > at
> > > >
> > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
> :536)
> > > > at
> > > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > (RendererUtils.java:443)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(
> RendererUtils.java:420)
> > > > at
> > > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > (RendererUtils.java
> > > > :441)
> > > > at
> > > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody
> (HtmlTableRenderer.java:588)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > (HtmlTableRendererBase.java
> > > > :299)
> > > > at
> > > >
> >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(
> HtmlTableRenderer.java:496)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > (HtmlTableRendererBase.java
> > > > :275)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
> (HtmlTableRendererBase.java:123)
> > > > at
> > > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > (HtmlTableRenderer.java
> > > > :171)
> > > > at
> > > >
> > javax.faces.component.UIComponentBase.encodeChildren(
> UIComponentBase.java:524)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > ComponentSupport.java:234)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > (ComponentSupport.java:239)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > (ComponentSupport.java:239)
> > > > at
> > > >
> > com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java
> :580)
> > > > at
> > org.apache.myfaces.lifecycle.LifecycleImpl.render
> > > > (LifecycleImpl.java:384)
> > > > at
> > > >
> > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(
> MyFacesGenericPortlet.java:403)
> > > > at
> > > >
> > org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(
> MyFacesGenericPortlet.java
> > :265)
> > > > at
> > > >
> > javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> > > > at
> > > >
> > javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> > > > at
> > > > br.eti.faces.mail.MailPortlet.render
> > (MailPortlet.java:43)
> > > > at
> > > >
> > com.liferay.portal.shared.servlet.PortletServlet.service(
> PortletServlet.java:83)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
> > > > :428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> :77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > (WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > (Dispatcher.java:163)
> > > > at
> > > >
> > com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
> > > > at
> > > >
> > com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
> > > > at
> > > >
> > org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
> > > > (render_005fportlet_jsp.java:649)
> > > > at
> > > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > org.apache.jasper.servlet.JspServletWrapper.service
> > > > (JspServletWrapper.java:324)
> > > > at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > (JspServlet.java:292)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > > at javax.servlet.http.HttpServlet.service
> > > > (HttpServlet.java:810)
> > > > at
> > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > (ServletHolder.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
> > > > at
> > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > (Jsr77Filter.java:77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > (WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > at com.liferay.portal.util.PortalUtil.renderPortlet
> > > > (PortalUtil.java:925)
> > > > at
> > > >
> >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet
> (RuntimePortletUtil.java:121)
> > > > at
> > > >
> >
> com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
> > > > (PortletColumnLogic.java:76)
> > > > at
> > > >
> >
> com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn
> > (TemplateProcessor.java:62)
> > > > at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > at
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > > at
> > > >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> > > > at java.lang.reflect.Method.invoke (Method.java:585)
> > > > at
> > > >
> >
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke
> > (UberspectImpl.java:267)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
> :197)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.execute(
> ASTReference.java
> > :175)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.render(
> ASTReference.java:220)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > > (SimpleNode.java:230)
> > > > at
> > > >
> > org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
> > > > at
> > > >
> > org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
> > > > at
> > > >
> >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> > > > (RuntimePortletUtil.java:163)
> > > > at
> > > >
> >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> (RuntimePortletUtil.java:144)
> > > > at
> > > >
> > org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
> > > > (portlet_jsp.java:407)
> > > > at
> > > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > org.apache.jasper.servlet.JspServletWrapper.service
> > > > (JspServletWrapper.java:324)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > > > at
> > > > org.apache.jasper.servlet.JspServlet.service
> > (JspServlet.java:236)
> > > > at javax.servlet.http.HttpServlet.service
> > > > (HttpServlet.java:810)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> :77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > > (WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > at com.liferay.taglib.util.IncludeTag.doEndTag
> > > > (IncludeTag.java:63)
> > > > at
> > > >
> > org.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:410)
> > > > at
> > > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > at javax.servlet.http.HttpServlet.service
> > > > (HttpServlet.java:810)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:324)
> > > > at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > (JspServlet.java:292)
> > > > at org.apache.jasper.servlet.JspServlet.service
> > > > (JspServlet.java:236)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > (ServletHolde
> > > > 2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
> > > > at
> > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > (Jsr77Filter.java:77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > (WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > (WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > > (Dispatcher.java:163)
> > > > at
> > > >
> > com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
> > > > at
> > > >
> >
> org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService
> (portal_005fnormal_jsp.java:907)
> > > > at
> > > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > > > org.apache.jasper.servlet.JspServletWrapper.service
> > (JspServletWrapper.java
> > > > :324)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > > at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java
> > > > :810)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > (WebApplicationHandler.java:830)
> > > > at
> > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > > (Jsr77Filter.java:77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > (WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> WebApplicationHandler.java
> > > > :471)
> > > > at
> > > > org.mortbay.jetty.servlet.Dispatcher.dispatch
> > (Dispatcher.java:286)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > > at
> > > >
> > com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java
> > > > :139)
> > > > at
> > > >
> > com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
> > > > at
> > > >
> > com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
> > > > at
> > > >
> >
> org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
> > > > (portal_jsp.java:460)
> > > > at
> > > >
> > org.apache.jsp.html.common.themes.portal_jsp._jspService
> (portal_jsp.java:381)
> > > > at
> > > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > > at javax.servlet.http.HttpServlet.service
> > > > (HttpServlet.java:810)
> > > > at
> > > >
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:324)
> > > > at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> > (JspServlet.java:292)
> > > > at org.apache.jasper.servlet.JspServlet.service
> > > > (JspServlet.java:236)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > > > org.mortbay.jetty.servlet.ServletHolder.handle
> > (ServletHolder.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > (WebApplicationHandler.java:830)
> > > > at
> > > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > (Jsr77Filter.java:77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java
> > > > :821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > (WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > > at org.mortbay.jetty.servlet.Dispatcher.forward
> > > > (Dispatcher.java:171)
> > > > at
> > > >
> > com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
> > > > at
> > > >
> > com.liferay.portal.struts.PortalRequestProcessor.doForward(
> PortalRequestProcessor.java:210)
> > > > at
> > > >
> > org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> > > > (TilesRequestProcessor.java:239)
> > > > at
> > > >
> > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
> TilesRequestProcessor.java:302)
> > > > at
> > > > org.apache.struts.action.RequestProcessor.process
> > (RequestProcessor.java
> > > > :241)
> > > > at
> > > >
> > com.liferay.portal.struts.PortalRequestProcessor.process(
> PortalRequestProcessor.java:185)
> > > > 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:717)
> > > > at
> > > >
> > com.liferay.portal.servlet.MainServlet.callParentService
> > (MainServlet.java:415)
> > > > at com.liferay.portal.servlet.MainServlet.service
> > > > (MainServlet.java:810)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > > (WebApplicationHandler.java:830)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java
> :77)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java
> > > > :821)
> > > > at
> > > >
> > com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:91)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at com.liferay.filters.secure.SecureFilter.doFilter
> > > > (SecureFilter.java:131)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at
> > > >
> > com.liferay.filters.compression.CompressionFilter.doFilter
> > (CompressionFilter.java
> > > > :112)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at
> > > >
> >
> com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter
> > (LayoutCacheFilter.java
> > > > :197)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > (WebApplicationHandler.java:471)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> > > > at
> > > >
> > org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> > > > at
> > > >
> > org.mortbay.jetty.servlet.WebApplicationContext.handle(
> WebApplicationContext.java
> > > > :633)
> > > > at
> > > >
> > org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> > > > at
> > > > org.mortbay.http.HttpServer.service
> > (HttpServer.java:909)
> > > > at org.jboss.jetty.Jetty.service(Jetty.java:456)
> > > > at org.mortbay.http.HttpConnection.service
> > > > (HttpConnection.java:816)
> > > > at
> > > > org.mortbay.http.HttpConnection.handleNext
> > (HttpConnection.java:982)
> > > > at
> > > >
> > org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> > > > at org.mortbay.http.SocketListener.handleConnection
> > > > (SocketListener.java:244)
> > > > at
> > > >
> > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> > > > at
> > > >
> > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> > > > 2006-07-27 13:22:09,843 ERROR
> > > > [com.liferay.portal.shared.servlet.PortletServlet ]
> > > > com.liferay.portlet.RenderResponseImpl
> > > > 2006-07-27 13:22:09,843 ERROR
> > > > [portal-web.docroot.html.portal.render_portlet.jsp]
> > > > java.lang.ClassCastException:
> > > > com.liferay.portlet.RenderResponseImpl
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > (StreamingAddResource.java:479)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > (StreamingAddResource.java:467)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > > (StreamingAddResource.java:373)
> > > > at
> > > >
> >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > (StreamingAddResource.java:391)
> > > > at
> > > >
> > org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > > (HtmlPopupRenderer.java:117)
> > > > at
> > > >
> > org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> > (HtmlPopupRenderer.java:64)
> > > > at
> > > >
> > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
> :536)
> > > > at
> > > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > > (RendererUtils.java:443)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(
> RendererUtils.java:420)
> > > > at
> > > >
> > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > (RendererUtils.java
> > > > :441)
> > > > at
> > > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody
> (HtmlTableRenderer.java:588)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> > (HtmlTableRendererBase.java
> > > > :299)
> > > > at
> > > >
> >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(
> HtmlTableRenderer.java:496)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> > (HtmlTableRendererBase.java
> > > > :275)
> > > > at
> > > >
> >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren
> (HtmlTableRendererBase.java:123)
> > > > at
> > > >
> > org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> > (HtmlTableRenderer.java
> > > > :171)
> > > > at
> > > >
> > javax.faces.component.UIComponentBase.encodeChildren(
> UIComponentBase.java:524)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> > ComponentSupport.java:234)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > > (ComponentSupport.java:239)
> > > > at
> > > >
> > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > (ComponentSupport.java:239)
> > > >
> > > >
> > > >
> > > > --
> > > > Yours truly (Atenciosamente),
> > > >
> > > > Rogério
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> >
> >
> > --
> > Yours truly (Atenciosamente),
> >
> > Rogério
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
--
Yours truly (Atenciosamente),
Rogério
Fwd: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
---------- Forwarded message ----------
From: Martin Marinschek <ma...@gmail.com>
Date: Jul 27, 2006 3:47 PM
Subject: Re: t:popup and liferay portlets
To: rogerio.araujo@gmail.com
I think you'd need to go with Mario's StreamingAddRessource for this
to work - not with the DefaultAddRessource, and use this optional in a
phase-listener. This should be straightforward.
What would be more complicated (or more work, at least) would be to
serve out the resources from the phase-listener instead of the filter.
Thing is that weblets might be interesting for this as well.
regards,
Martin
On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> Hehehe, sure! But i need some time to get the main idea of AddResouce stuff
> before do this.
>
> 2006/7/27, Martin Marinschek <martin.marinschek@gmail.com >:
> > Portlets and the extension filter don't work together.
> >
> > I've been reiterating that we need to change to a phase-listener from
> > the filter, but there has been no one investing the work so far.
> >
> > Interested?
> >
> > regards,
> >
> > Martin
> >
> > On 7/27/06, Rogerio Pereira <rogerio.araujo@gmail.com > wrote:
> > > Hi guys,
> > >
> > > Somebody got this error with t:popup component and liferay?
> > >
> > > SEVERE: Error Rendering View[/mail-view.xhtml]
> > > java.lang.ClassCastException:
> > > com.liferay.portlet.RenderResponseImpl
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:479)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:467)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:373)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:391)
> > > at
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > (HtmlPopupRenderer.java:117)
> > > at
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> (HtmlPopupRenderer.java:64)
> > > at
> > >
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java:443)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> (RendererUtils.java
> > > :441)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> (HtmlTableRendererBase.java
> > > :299)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> (HtmlTableRendererBase.java
> > > :275)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> (HtmlTableRenderer.java
> > > :171)
> > > at
> > >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> ComponentSupport.java:234)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> (ComponentSupport.java:239)
> > > at
> > >
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
> > > at
> org.apache.myfaces.lifecycle.LifecycleImpl.render
> > > (LifecycleImpl.java:384)
> > > at
> > >
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:403)
> > > at
> > >
> org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java
> :265)
> > > at
> > >
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> > > at
> > >
> javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> > > at
> > > br.eti.faces.mail.MailPortlet.render
> (MailPortlet.java:43)
> > > at
> > >
> com.liferay.portal.shared.servlet.PortletServlet.service(PortletServlet.java:83)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
> > > :428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> > > at
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > (Dispatcher.java:163)
> > > at
> > >
> com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
> > > at
> > >
> com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
> > > at
> > >
> org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
> > > (render_005fportlet_jsp.java:649)
> > > at
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> org.apache.jasper.servlet.JspServletWrapper.service
> > > (JspServletWrapper.java:324)
> > > at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:292)
> > > at
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:810)
> > > at
> > > org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> > > at
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> (Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > at com.liferay.portal.util.PortalUtil.renderPortlet
> > > (PortalUtil.java:925)
> > > at
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:121)
> > > at
> > >
> com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
> > > (PortletColumnLogic.java:76)
> > > at
> > >
> com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn
> (TemplateProcessor.java:62)
> > > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > at
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke (Method.java:585)
> > > at
> > >
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke
> (UberspectImpl.java:267)
> > > at
> > >
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
> > > at
> > >
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java
> :175)
> > > at
> > >
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
> > > at
> > >
> org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > (SimpleNode.java:230)
> > > at
> > >
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
> > > at
> > >
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
> > > at
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> > > (RuntimePortletUtil.java:163)
> > > at
> > >
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:144)
> > > at
> > >
> org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
> > > (portlet_jsp.java:407)
> > > at
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> org.apache.jasper.servlet.JspServletWrapper.service
> > > (JspServletWrapper.java:324)
> > > at
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > > at
> > > org.apache.jasper.servlet.JspServlet.service
> (JspServlet.java:236)
> > > at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:810)
> > > at
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> > > at
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> > > (WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > at com.liferay.taglib.util.IncludeTag.doEndTag
> > > (IncludeTag.java:63)
> > > at
> > >
> org.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:410)
> > > at
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:810)
> > > at
> > >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> > > at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:292)
> > > at org.apache.jasper.servlet.JspServlet.service
> > > (JspServlet.java:236)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > > org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolde
> > > 2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> > > at
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> (Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > at org.mortbay.jetty.servlet.Dispatcher.include
> > > (Dispatcher.java:163)
> > > at
> > >
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
> > > at
> > >
> org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService(portal_005fnormal_jsp.java:907)
> > > at
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java
> > > :324)
> > > at
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > > at
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java
> > > :810)
> > > at
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:830)
> > > at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> > > (Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java
> > > :471)
> > > at
> > > org.mortbay.jetty.servlet.Dispatcher.dispatch
> (Dispatcher.java:286)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> > > at
> > >
> com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java
> > > :139)
> > > at
> > >
> com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
> > > at
> > >
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
> > > at
> > >
> org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
> > > (portal_jsp.java:460)
> > > at
> > >
> org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:381)
> > > at
> > >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:810)
> > > at
> > >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> > > at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:292)
> > > at org.apache.jasper.servlet.JspServlet.service
> > > (JspServlet.java:236)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > > org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:830)
> > > at
> > > org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> (Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> > > :821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> > > at org.mortbay.jetty.servlet.Dispatcher.forward
> > > (Dispatcher.java:171)
> > > at
> > >
> com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
> > > at
> > >
> com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:210)
> > > at
> > >
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> > > (TilesRequestProcessor.java:239)
> > > at
> > >
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
> > > at
> > > org.apache.struts.action.RequestProcessor.process
> (RequestProcessor.java
> > > :241)
> > > at
> > >
> com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:185)
> > > 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:717)
> > > at
> > >
> com.liferay.portal.servlet.MainServlet.callParentService
> (MainServlet.java:415)
> > > at com.liferay.portal.servlet.MainServlet.service
> > > (MainServlet.java:810)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> > > (WebApplicationHandler.java:830)
> > > at
> > >
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> > > :821)
> > > at
> > >
> com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:91)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at com.liferay.filters.secure.SecureFilter.doFilter
> > > (SecureFilter.java:131)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at
> > >
> com.liferay.filters.compression.CompressionFilter.doFilter
> (CompressionFilter.java
> > > :112)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at
> > >
> com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter
> (LayoutCacheFilter.java
> > > :197)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:471)
> > > at
> > >
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> > > at
> > >
> org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> > > at
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java
> > > :633)
> > > at
> > >
> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> > > at
> > > org.mortbay.http.HttpServer.service
> (HttpServer.java:909)
> > > at org.jboss.jetty.Jetty.service(Jetty.java:456)
> > > at org.mortbay.http.HttpConnection.service
> > > (HttpConnection.java:816)
> > > at
> > > org.mortbay.http.HttpConnection.handleNext
> (HttpConnection.java:982)
> > > at
> > >
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> > > at org.mortbay.http.SocketListener.handleConnection
> > > (SocketListener.java:244)
> > > at
> > >
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> > > at
> > >
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> > > 2006-07-27 13:22:09,843 ERROR
> > > [com.liferay.portal.shared.servlet.PortletServlet ]
> > > com.liferay.portlet.RenderResponseImpl
> > > 2006-07-27 13:22:09,843 ERROR
> > > [portal-web.docroot.html.portal.render_portlet.jsp]
> > > java.lang.ClassCastException:
> > > com.liferay.portlet.RenderResponseImpl
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:479)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:467)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> > > (StreamingAddResource.java:373)
> > > at
> > >
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:391)
> > > at
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> > > (HtmlPopupRenderer.java:117)
> > > at
> > >
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd
> (HtmlPopupRenderer.java:64)
> > > at
> > >
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> > > (RendererUtils.java:443)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> (RendererUtils.java
> > > :441)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild
> (HtmlTableRendererBase.java
> > > :299)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml
> (HtmlTableRendererBase.java
> > > :275)
> > > at
> > >
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
> > > at
> > >
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren
> (HtmlTableRenderer.java
> > > :171)
> > > at
> > >
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
> ComponentSupport.java:234)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> > > (ComponentSupport.java:239)
> > > at
> > >
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> (ComponentSupport.java:239)
> > >
> > >
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: t:popup and liferay portlets
Posted by Martin Marinschek <ma...@gmail.com>.
Portlets and the extension filter don't work together.
I've been reiterating that we need to change to a phase-listener from
the filter, but there has been no one investing the work so far.
Interested?
regards,
Martin
On 7/27/06, Rogerio Pereira <ro...@gmail.com> wrote:
> Hi guys,
>
> Somebody got this error with t:popup component and liferay?
>
> SEVERE: Error Rendering View[/mail-view.xhtml]
> java.lang.ClassCastException:
> com.liferay.portlet.RenderResponseImpl
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:479)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:467)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:373)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:391)
> at
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> (HtmlPopupRenderer.java:117)
> at
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(HtmlPopupRenderer.java:64)
> at
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> (RendererUtils.java:443)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java
> :441)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java
> :299)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java
> :275)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java
> :171)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:234)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> (ComponentSupport.java:239)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
> at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
> at org.apache.myfaces.lifecycle.LifecycleImpl.render
> (LifecycleImpl.java:384)
> at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:403)
> at
> org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
> at
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> at
> javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> at
> br.eti.faces.mail.MailPortlet.render(MailPortlet.java:43)
> at
> com.liferay.portal.shared.servlet.PortletServlet.service(PortletServlet.java:83)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
> :428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at org.mortbay.jetty.servlet.Dispatcher.include
> (Dispatcher.java:163)
> at
> com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289)
> at
> com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)
> at
> org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
> (render_005fportlet_jsp.java:649)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> at com.liferay.portal.util.PortalUtil.renderPortlet
> (PortalUtil.java:925)
> at
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:121)
> at
> com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent
> (PortletColumnLogic.java:76)
> at
> com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn(TemplateProcessor.java:62)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke (Method.java:585)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render
> (SimpleNode.java:230)
> at
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:316)
> at
> org.apache.velocity.app.Velocity.evaluate(Velocity.java:210)
> at
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate
> (RuntimePortletUtil.java:163)
> at
> com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:144)
> at
> org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService
> (portlet_jsp.java:407)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> at com.liferay.taglib.util.IncludeTag.doEndTag
> (IncludeTag.java:63)
> at
> org.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:410)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at org.apache.jasper.servlet.JspServlet.service
> (JspServlet.java:236)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolde
> 2006-07-27 13:22:09,843 ERROR [STDERR] r.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at org.mortbay.jetty.servlet.Dispatcher.include
> (Dispatcher.java:163)
> at
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:63)
> at
> org.apache.jsp.html.themes.classic.templates.portal_005fnormal_jsp._jspService(portal_005fnormal_jsp.java:907)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java
> :810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter
> (Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java
> :471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
> at
> com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java
> :139)
> at
> com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:93)
> at
> com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
> at
> org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay$1theme_include_0
> (portal_jsp.java:460)
> at
> org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:381)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:810)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at org.apache.jasper.servlet.JspServlet.service
> (JspServlet.java:236)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> :821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
> at org.mortbay.jetty.servlet.Dispatcher.forward
> (Dispatcher.java:171)
> at
> com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:87)
> at
> com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:210)
> at
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> (TilesRequestProcessor.java:239)
> at
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> :241)
> at
> com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:185)
> 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:717)
> at
> com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:415)
> at com.liferay.portal.servlet.MainServlet.service
> (MainServlet.java:810)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
> (WebApplicationHandler.java:830)
> at
> org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java
> :821)
> at
> com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:91)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at com.liferay.filters.secure.SecureFilter.doFilter
> (SecureFilter.java:131)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java
> :112)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java
> :197)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java
> :633)
> at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at
> org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.jboss.jetty.Jetty.service(Jetty.java:456)
> at org.mortbay.http.HttpConnection.service
> (HttpConnection.java:816)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
> at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> at org.mortbay.http.SocketListener.handleConnection
> (SocketListener.java:244)
> at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 2006-07-27 13:22:09,843 ERROR
> [com.liferay.portal.shared.servlet.PortletServlet ]
> com.liferay.portlet.RenderResponseImpl
> 2006-07-27 13:22:09,843 ERROR
> [portal-web.docroot.html.portal.render_portlet.jsp]
> java.lang.ClassCastException:
> com.liferay.portlet.RenderResponseImpl
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:479)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:467)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
> (StreamingAddResource.java:373)
> at
> org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:391)
> at
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
> (HtmlPopupRenderer.java:117)
> at
> org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(HtmlPopupRenderer.java:64)
> at
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
> (RendererUtils.java:443)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java
> :441)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java
> :299)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java
> :275)
> at
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
> at
> org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java
> :171)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:234)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
> (ComponentSupport.java:239)
> at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces