[jboss-user] [JBoss Seam] - Re: Integrating Tomahawk with Seam

atao do-not-reply at jboss.com
Fri Apr 20 18:13:48 EDT 2007


anonymous wrote : 
  | I was thinking perhaps we need to add the configuration to JBoss not our app, since the MyFaces stuff is in JBoss but I couldnt find anything on the JBoss site except in some forums people say they do have this configured.
  | 

Tomahawk works fine with application configuration. I put this in web.xml:


  |     <!-- MyFaces : Tomahawk extension -->
  | 
  |     <filter>
  |     	<filter-name>MyFacesExtensionsFilter</filter-name>
  |         <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  |     	<init-param>
  |           <param-name>maxFileSize</param-name>
  |           <param-value>20m</param-value>
  |         </init-param>
  |     </filter>
  | 
  |     <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
  | <!-- keep only the mappingwith url-pattern
  |     <filter-mapping>
  |     	<filter-name>MyFacesExtensionsFilter</filter-name>
  |     	<servlet-name>Faces Servlet</servlet-name>
  |     </filter-mapping>
  | -->
  |  
  |     <filter-mapping>
  |       <filter-name>MyFacesExtensionsFilter</filter-name>
  |       <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | 
  |     <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
  |     <filter-mapping>
  |     	<filter-name>MyFacesExtensionsFilter</filter-name>
  |     	<url-pattern>/faces/*</url-pattern>
  |     </filter-mapping>
  | 
  | 

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

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



More information about the jboss-user mailing list