3 Replies Latest reply on Feb 19, 2007 9:47 PM by Fernando Montaño

    Seam Security and ICEFaces

    Joshua Jackson Master

      I just want to confirm whether anyone has able to work with the latest Seam security with ICEFaces, since I am not able to get it working.

        • 1. Re: Seam Security and ICEFaces
          Fernando Montaño Expert

          I have security configuration using Seam 1.1.6GA with ICEFaces 1.5.3.

          I only have one know issue (also reported in both forums. When I want to logout I get exceptions.

          • 2. Re: Seam Security and ICEFaces
            Joshua Jackson Master

            Can I take a look at your web.xml and faces-config.xml

            I'm suspecting it doesn't work because of the configuration and perhaps also the ICEFaces library. I can not even login using the latest Seam security feature with ICEFaces

            Thanks in advance

            • 3. Re: Seam Security and ICEFaces
              Fernando Montaño Expert

              My faces-config.xml:

              <faces-config>
               <application>
               <message-bundle>messages</message-bundle>
               <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
               <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
               </application>
               <!-- Seam extended transaction management -->
               <lifecycle>
               <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
               </lifecycle>
              
              </faces-config>
              



              My web.xhml:


              <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
               version="2.4">
              
              
              
              
               <context-param>
               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
               <param-value>client</param-value>
               </context-param>
              
               <context-param>
               <param-name>facelets.DEVELOPMENT</param-name>
               <param-value>true</param-value>
               </context-param>
              
              
              
               <context-param>
               <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
               <param-value>.xhtml</param-value>
               </context-param>
              
               <context-param>
               <param-name>facelets.SKIP_COMMENTS</param-name>
               <param-value>true</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.icesoft.faces.actionURLSuffix</param-name>
               <param-value>.jsf</param-value>
               </context-param>
              
               <!-- concurrent DOM views -->
               <context-param>
               <param-name>com.icesoft.faces.concurrentDOMViews</param-name>
               <param-value>true</param-value>
               </context-param>
               <!-- Asynchronous Updates -->
               <context-param>
               <param-name>com.icesoft.faces.synchronousUpdate</param-name>
               <param-value>true</param-value>
               </context-param>
              
               <filter>
               <filter-name>Seam Filter</filter-name>
               <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
               </filter>
              
              
              
               <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
               </listener>
              
               <listener>
               <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
               </listener>
              
               <filter-mapping>
               <filter-name>Seam Filter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>
              
              
              
              
              
               <servlet>
               <servlet-name>Blocking Servlet</servlet-name>
               <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
              
               <servlet>
               <servlet-name>Persistent Faces Servlet</servlet-name>
               <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
              
               <servlet-mapping>
               <servlet-name>Persistent Faces Servlet</servlet-name>
               <url-pattern>/xmlhttp/*</url-pattern>
               </servlet-mapping>
              
               <servlet-mapping>
               <servlet-name>Persistent Faces Servlet</servlet-name>
               <url-pattern>/xmlhttp/*</url-pattern>
               </servlet-mapping>
              
               <servlet-mapping>
               <servlet-name>Persistent Faces Servlet</servlet-name>
               <url-pattern>*.iface</url-pattern>
               </servlet-mapping>
              
              <!-- Blocking Servlet Mapping -->
               <servlet-mapping>
               <servlet-name>Blocking Servlet</servlet-name>
               <url-pattern>/block/*</url-pattern>
               </servlet-mapping>
              
               <!-- Faces Servlet Mapping -->
               <servlet-mapping>
               <servlet-name>Persistent Faces Servlet</servlet-name>
               <url-pattern>*.jsf</url-pattern>
               </servlet-mapping>
              
               <welcome-file-list>
               <welcome-file>index.html</welcome-file>
               </welcome-file-list>
              
              
              </web-app>
              
              




              One note:
              Above configuration, specially for Seam Filter is for Seam 1.1.6 CVS nightly build, if you want to use it, you should get a CVS copy of Seam and build it.