[jboss-user] [JBoss Seam] - Re: Seam Security and ICEFaces

fernando_jmt do-not-reply at jboss.com
Mon Feb 19 21:47:49 EST 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019149#4019149

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019149



More information about the jboss-user mailing list