Announcement Announcement Module
Collapse
No announcement yet.
can i use JSF tags w/in my Spring MVC views Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • can i use JSF tags w/in my Spring MVC views

    is it possible to use JSF tags inside my JSP that i used as my view for my Spring MVC application?

    i tried putting just a simple tag <f:view></f:view>

    and my application would thrown an exception
    Code:
    2005-08-31 11&#58;07&#58;21,437 ERROR &#91;org.springframework.web.servlet.DispatcherServlet&#93; - <Could
     not complete request>
    javax.servlet.jsp.JspException&#58; Cannot find FacesContext
            at com.caucho.jsp.PageContextImpl.handlePageException&#40;PageContextImpl.java&#58;957&#41;
            at _jsp._web_22dinf._jsp._billing_220cycle__jsp._jspService&#40;_billing_220cycle__jsp
    .java&#58;81&#41;
            at com.caucho.jsp.JavaPage.service&#40;JavaPage.java&#58;75&#41;
            at com.caucho.jsp.Page.pageservice&#40;Page.java&#58;571&#41;
            at com.caucho.server.dispatch.PageFilterChain.doFilter&#40;PageFilterChain.java&#58;155&#41;
            at com.caucho.server.webapp.DispatchFilterChain.doFilter&#40;DispatchFilterChain.java&#58;
    129&#41;
            at com.caucho.server.dispatch.ServletInvocation.service&#40;ServletInvocation.java&#58;221
    &#41;
            at com.caucho.server.webapp.RequestDispatcherImpl.forward&#40;RequestDispatcherImpl.ja
    va&#58;272&#41;
            at com.caucho.server.webapp.RequestDispatcherImpl.forward&#40;RequestDispatcherImpl.ja
    va&#58;112&#41;
            at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputMod
    el&#40;InternalResourceView.java&#58;97&#41;
            at org.springframework.web.servlet.view.AbstractView.render&#40;AbstractView.java&#58;250&#41;
    
            at org.springframework.web.servlet.DispatcherServlet.render&#40;DispatcherServlet.java
    &#58;928&#41;
            at org.springframework.web.servlet.DispatcherServlet.doDispatch&#40;DispatcherServlet.
    java&#58;705&#41;
            at org.springframework.web.servlet.DispatcherServlet.doService&#40;DispatcherServlet.j
    ava&#58;625&#41;
            at org.springframework.web.servlet.FrameworkServlet.serviceWrapper&#40;FrameworkServle
    t.java&#58;386&#41;
            at org.springframework.web.servlet.FrameworkServlet.doGet&#40;FrameworkServlet.java&#58;34
    6&#41;
            at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java&#58;126&#41;
            at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java&#58;103&#41;
            at com.caucho.server.dispatch.ServletFilterChain.doFilter&#40;ServletFilterChain.java&#58;
    113&#41;
            at com.caucho.server.cache.CacheFilterChain.doFilter&#40;CacheFilterChain.java&#58;211&#41;
            at com.caucho.server.webapp.WebAppFilterChain.doFilter&#40;WebAppFilterChain.java&#58;177&#41;
    
            at com.caucho.server.dispatch.ServletInvocation.service&#40;ServletInvocation.java&#58;221
    &#41;
            at com.caucho.server.http.HttpRequest.handleRequest&#40;HttpRequest.java&#58;263&#41;
            at com.caucho.server.port.TcpConnection.run&#40;TcpConnection.java&#58;331&#41;
            at com.caucho.util.ThreadPool.runTasks&#40;ThreadPool.java&#58;464&#41;
            at com.caucho.util.ThreadPool.run&#40;ThreadPool.java&#58;408&#41;
            at java.lang.Thread.run&#40;Thread.java&#58;595&#41;
    Caused by&#58; javax.servlet.jsp.JspException&#58; Cannot find FacesContext
            at javax.faces.webapp.UIComponentTag.doStartTag&#40;UIComponentTag.java&#58;405&#41;
            at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag&#40;ViewTag.java&#58;105&#41;
            at _jsp._web_22dinf._jsp._billing_220cycle__jsp._jspService&#40;_billing_220cycle__jsp
    .java&#58;36&#41;
    what special configuration that i would have to add to make this work. or is it really possible to combine the two, Spring MVC and JSF.

    thanks
Working...
X