5 Replies Latest reply on Apr 21, 2004 1:40 PM by Jason Howk

    JSF General Release

    Darryl Thompson Newbie

      Hi All,

      What position will the JBoss group take when Sun releases the GA version of JSF? Sun has suggested that it will be some time between March and May 2004, and with the release of JSF those companies that elect to begin the migration from Struts to JSF (either via intergration of the two or simple moving to pure JSF) will need a Servlet 2.4/JSP 2.0 compliant web server (Tomcat 5) to run on. So what can we expect from JBoss? Does the JBoss group plan to support Sun new Industry Standard JSF?

      Hopefully YES (and quickly) because like many others worldwide I like using JBoss (its an excellent product) and many of us are eager to move to JSF.

        • 1. Re: JSF General Release
          Ivelin Ivanov Expert

          I belive Tomcat 5 has been integrated with JBoss in the current 3.2.4 release candidate and it will be publicly available as a final release shortly.

          Ivelin

          • 2. Re: JSF General Release
            marc fleury Master

            eusdart,

            want RW on CVS? submit some code

            • 3. Re: JSF General Release
              Darryl Thompson Newbie

              All,

              This response is late in coming but I still thought I would share it anyway:

              I have been very successful using JBoss 3.2.3x ( both the Jetty version and Tomcat4 as well as Tomcat 5) and JavaServer Faces (JSF). There are a couple of ways one can use JSF on JBoss depending on your needs:
              1) Use JSF with JSP 1.0/1.1 reference
              This approach requires that you swap the JSP 2.0 jars replacing them with JSP 1.0/1.1 jars (and do the same for the JSTL jar file).

              Taking this approach eliminates the need for Tomcat 5 or a JSP 2.0
              container, and you still get ALL of the JSF functionality.

              2) Use JSF with Jetty 4.1.x
              - Here all I had to do was include a "listener" stanza in the web.xml file and perform the steps listed in item #1

              3) Use the Tomcat 5 with JBoss
              - Here I did not have to add the listener in the beta 1.0 archives but I
              did have to add the listener for the 1.0 FCS archives.

              No matter the approach taken JBoss continues to work wonderfully with JSF.

              Regards,
              eusdart

              PS
              Hello Marc Fluery we met a few years ago at the 2001 Java One/JBoss One in S.F. Thanks for signing my book.

              • 4. Re: JSF General Release
                Jason Howk Newbie

                Got that. Now for the really dumb question... Can you go into a little more detail regarding #1? Where are the 2.0 files located and do we swap them out with those that can be found in a clean 4.0 tomcat disto?

                • 5. Re: JSF General Release
                  Jason Howk Newbie

                  Think before speaking grasshopper. Here's what I did to get it to work:

                  1.) download apache jakarta standard taglibs @ http://apache.130th.net/jakarta/taglibs/standard-1.0/jakarta-taglibs-standard-current.tar.gz
                  (I'm using a mirror here this is the place I was directed to from apache.) URL to taglibs: http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/intro.html

                  2.) Mod web.xml to suit:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE web-app PUBLIC
                   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                   "http://java.sun.com/dtd/web-app_2_3.dtd">
                  <web-app>
                  
                   <listener>
                   <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
                   </listener>
                   <servlet>
                   <servlet-name>Faces Servlet</servlet-name>
                   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                   <load-on-startup>1</load-on-startup>
                   </servlet>
                   <servlet-mapping>
                   <servlet-name>Faces Servlet</servlet-name>
                   <url-pattern>*.faces</url-pattern>
                   </servlet-mapping>
                   <welcome-file-list>
                   <welcome-file>/index.html</welcome-file>
                   </welcome-file-list>
                   <taglib>
                   <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
                   <taglib-location>html_basic.tld</taglib-location>
                   </taglib>
                   <taglib>
                   <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
                   <taglib-location>jsf_core.tld</taglib-location>
                   </taglib>
                  </web-app>
                  

                  3.) Add jstl.jar, standard.jar (both in the lib dir. of package downloaded in step 1),jsf-api.jar, and jsf-impl to WEB-INF/lib

                  4.) enjoy using JSF.

                  --J.