myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sso...@o2.pl
Subject Re: myfaces + sitemesh, any known problems?
Date Tue, 22 Feb 2005 16:14:14 GMT
what excatcly are u trying to do?

i guess that u have written decorator page with JSF tags...
am i right?


im not sure but i think its impossible to do that:/
your decorator page must be secified in conf file (for example: 
mainDecorator.jsp), BUT jsf pages must be requested by somme virtual 
path or special extension (for ex: mainDecorator.jsf)

and there is mismatch:/

sitemesh cant see mainDecorator.jsf file on your disk, so you must 
call decorator as mainDecorator.jsp - which cant be filtered by 
myFaces:/
so you can decorate jsf pages, but your decorator cant be written 
with jsf tags (must be pure jsp)

i hope im not right;)
if anyone can write decorator with jsf tags-please show us the way..
.

Sławek Sobótka
> > 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(UIComponentTag.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.
jsp.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(JspServletWrapper.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.
internalDoFilter(ApplicationFilterChain.java:237) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:157) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationDispatcher.
invoke(ApplicationDispatcher.java:674) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationDispatcher.
doInclude(ApplicationDispatcher.java:576) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationDispatcher.
include(ApplicationDispatcher.java:501) 
> > 
> >    at 
> > com.opensymphony.module.sitemesh.filter.PageFilter.
applyDecorator(PageFilter.java:156) 
> > 
> >    at 
> > com.opensymphony.module.sitemesh.filter.PageFilter.
doFilter(PageFilter.java:59) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:186) 
> > 
> >    at 
> > org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:157) 
> > 
> >    at 
> > org.apache.catalina.core.StandardWrapperValve.
invoke(StandardWrapperValve.java:214) 
> > 
> >    at 
> > org.apache.catalina.core.StandardContextValve.
invoke(StandardContextValve.java:178) 
> > 
> >    at 
> > org.apache.catalina.core.StandardHostValve.
invoke(StandardHostValve.java:126) 
> > 
> >    at 
> > org.apache.catalina.valves.ErrorReportValve.
invoke(ErrorReportValve.java:105) 
> > 
> >    at 
> > org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107) 
> > 
> >    at 
> > org.apache.catalina.connector.CoyoteAdapter.
service(CoyoteAdapter.java:148)
> >    at 
> > org.apache.coyote.http11.Http11Processor.
process(Http11Processor.java:825)
> >    at 
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.
processConnection(Http11Protocol.java:731) 
> > 
> >    at 
> > org.apache.tomcat.util.net.PoolTcpEndpoint.
processSocket(PoolTcpEndpoint.java:526) 
> > 
> >    at 
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.
runIt(LeaderFollowerWorkerThread.java:80) 
> > 
> >    at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.
run(ThreadPool.java:684) 
> > 
> >    at java.lang.Thread.run(Thread.java:595)
> > 
> 
> -- 
> Matthias Weßendorf
> Aechterhoek 18
> DE-48282 Emsdetten
> Germany
> phone: +49-2572-9170275
> cell phone: +49-179-1118979
> email: matzew AT apache DOT org
> url: http://www.wessendorf.net
> callto://mwessendorf (Skype)
> icq: 47016183
> 


Mime
View raw message