0 Replies Latest reply on Jan 29, 2009 10:29 AM by sudipto goswami

    Seam and facelets integration

    sudipto goswami Newbie
      Hi
      I am using Seam 2.1.1, with Eclipse (Ganymede) and Jboss 4.2
      I have no issue using the default seam web project generated by eclipse.
      But if I am trying to use any jsp i am getting
      java.lang.runtimeexception: cannot find facescontext

      but any xhtml files are fine.
      to access the jsps i am using the following in web.xml under security constraiint
      <security-constraint>
          <display-name>Restrict raw JSP Documents</display-name>
          <web-resource-collection>
            <web-resource-name>JSP</web-resource-name>
            <url-pattern>*.jsp</url-pattern>
          </web-resource-collection>
          <auth-constraint/>
        </security-constraint>

      This is my test1.jsp
      <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
      <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
      <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>Insert title here</title>
      </head>
      <body>
      <f:view>
      <h:outputText value="Hi sudipto" />
      </f:view>
      </body>
      </html>
      I tried accesing it using test1.jsp via url as well as test1.seam
      but no success.

      An all the examples provided by Seam is either of xhtml or jsp but not both.

      I am new to this xhtml , hence want to use jsps
      please help