Last time I tried it, there was a problem with the ressource-references to
javascript and stylesheets that some components (eg the htmleditor) add to
the head - I did not find out yet, where exactly the ressource-references
are added. Simply adding the decorator:head to my decorator did not solve
the problem. 

But using sitemesh with myfaces basically works, if you add the
ressource-references manually. However, you should not try to use components
inside the decorator - I bet there are some context-objects missing, as you
are inside a filter and already outside the faces-context. (at least that's
my guess...)

> -----Original Message-----
> From: tony k [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 22. Februar 2005 05:27
> To: MyFaces Discussion
> Subject: myfaces + sitemesh, any known problems?
> 
> hi,
> 
> i'm trying to use sitemesh to factor out the layout from the 
> various pages in the myfaces example app, and i'm getting the 
> stack listed below:
> 
> are there any know problems with using sitemesh for this 
> purpose within a myfaces app?
> 
> are there any other preferred templating approaches to this problem?
> 
> thanks in advance, tony...
> 
> 
> 
> 
> SEVERE: Servlet.service() for servlet Faces Servlet threw 
> exception java.lang.NullPointerException
>     at
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UICompon
> entTag.java:634)
>     at 
> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:244)
>     at
> net.sourceforge.myfaces.taglib.core.ViewTag.doStartTag(ViewTag
> .java:87)
>     at
> org.apache.jsp.decorators.default_jsp._jspx_meth_f_view_0(org.
> apache.jsp.decorators.default_jsp:145)
>     at
> org.apache.jsp.decorators.default_jsp._jspService(org.apache.j
> sp.decorators.default_jsp:117)
>     at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:325)
>     at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>     at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:237)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:157)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> ionDispatcher.java:674)
>     at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(Appli
> cationDispatcher.java:576)
>     at
> org.apache.catalina.core.ApplicationDispatcher.include(Applica
> tionDispatcher.java:501)
>     at
> com.opensymphony.module.sitemesh.filter.PageFilter.applyDecora
> tor(PageFilter.java:156)
>     at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Pa
> geFilter.java:59)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:186)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:157)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:214)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:178)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:126)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:105)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:107)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
> ter.java:148)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.java:825)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processConnection(Http11Protocol.java:731)
>     at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolT
> cpEndpoint.java:526)
>     at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Le
> aderFollowerWorkerThread.java:80)
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>     at java.lang.Thread.run(Thread.java:595)
> 

Reply via email to