7. Edit .\booking\resources\WEB-INF\web.xml with this content:
| <?xml version="1.0" encoding="UTF-8"?> | <web-app version="2.4" | 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"> | | <!-- Seam --> | | <listener> | <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> | </listener> | | <!-- Propagate conversations across redirects --> | <filter> | <filter-name>Seam Redirect Filter</filter-name> | <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class> | </filter> | | <filter-mapping> | <filter-name>Seam Redirect Filter</filter-name> | <url-pattern>*.seam</url-pattern> | </filter-mapping> | | <!-- Extensions Filter --> | | <filter> | <filter-name>extensionsFilter</filter-name> | <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> | <init-param> | <description>Set the size limit for uploaded files. | Format: 10 - 10 bytes | 10k - 10 KB | 10m - 10 MB | 1g - 1 GB | </description> | <param-name>uploadMaxFileSize</param-name> | <param-value>100m</param-value> | </init-param> | <init-param> | <description>Set the threshold size - files | below this limit are stored in memory, files above | this limit are stored on disk. | | Format: 10 - 10 bytes | 10k - 10 KB | 10m - 10 MB | 1g - 1 GB | </description> | <param-name>uploadThresholdSize</param-name> | <param-value>100k</param-value> | </init-param> | </filter> | | <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages --> | | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <servlet-name>Faces Servlet</servlet-name> | </filter-mapping> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> | </filter-mapping> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>*.jsf</url-pattern> | </filter-mapping> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>*.jsp</url-pattern> | </filter-mapping> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>/faces/*</url-pattern> | </filter-mapping> | | <!-- JSF --> | <!-- | <listener> | <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> | </listener> | --> | | <context-param> | <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> | <param-value>false</param-value> | </context-param> | <context-param> | <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> | <param-value>false</param-value> | </context-param> | <context-param> | <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name> | <param-value>false</param-value> | </context-param> | <context-param> | <param-name>org.apache.myfaces.PRETTY_HTML</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <param-name>javax.faces.STATE_SAVING_METHOD</param-name> | <param-value>client</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.DEVELOPMENT</param-name> | <param-value>true</param-value> | </context-param> | | <servlet> | <servlet-name>Faces Servlet</servlet-name> | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | <load-on-startup>1</load-on-startup> | </servlet> | | <!-- Faces Servlet Mapping --> | | <servlet-mapping> | <servlet-name>Faces Servlet</servlet-name> | <url-pattern>*.seam</url-pattern> | </servlet-mapping> | | <servlet-mapping> | <servlet-name>Faces Servlet</servlet-name> | <url-pattern>*.jsf</url-pattern> | </servlet-mapping> | | <!-- Seam Remoting --> | | <servlet> | <servlet-name>Seam Remoting</servlet-name> | <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class> | </servlet> | | <servlet-mapping> | <servlet-name>Seam Remoting</servlet-name> | <url-pattern>/seam/remoting/*</url-pattern> | </servlet-mapping> | | </web-app> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971933#3971933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971933 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
