0 Replies Latest reply on Oct 10, 2007 4:05 AM by jonathan12

    JSF project and RHD beta 2

    jonathan12

      Hello,

      I would like to create a new jsf project. The creation is working correctly but when I click on a link to a JSF page, the browser asks me to download the file.

      My page is a xhtml file and I have set this in my web.xml :

      <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>


      So, I tried with a jsp file, just to see if the problem comes from my xhtml. Now, my JSP is displayed, but only if I have no JSF tag. If I add a simple <h:outputText>, I have this exception :
      java.lang.NullPointerException
       javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
       javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
       org.apache.jsp.index2_jsp._jspx_meth_h_outputText_0(index2_jsp.java:85)
       org.apache.jsp.index2_jsp._jspService(index2_jsp.java:58)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
       com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
       com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
       com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
       com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      Somebody to help me ?