[jboss-user] [JBoss Seam] - Re: Any experiences with the Tomahawk components?
bfo81
do-not-reply at jboss.com
Mon Aug 28 05:48:49 EDT 2006
Sorry guys, I wanted to post a complete documentation some days ago. I even typed it in. But somehow I forgot to click the submit button (maybe because I went to lunch and wanted to read over it again) and due to something else I really forgot it witched the window tab and must have closed it accidently.
But however, you made it work yourself. I'm short of time now, so I cannot post the complete howto again, but here's the short form. You just need
- the tomahawk-1.1.3.jar file (place it in $JBOSS_HOME/server/default/deploy/tomcat55.sar/jsflibs) + maybe some other Apache Commons jars (watch out for NoClassDefFoundErrors and google it - I don't know anymore which ones Tomahawk needed)
- some entries in the /WEB-INF/web.xml of your project
<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>
| <description>Set the size limit for uploaded files.
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
| </description>
| </init-param>
| </filter>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
|
|
- place a file named tomahawk.taglib.xml in /WEB/INF folder of your project. Contents of this file are listed here: http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox
- use xmlns:t="http://myfaces.apache.org/tomahawk"
in your jsf headers in oder to make the prefix available and to use tomahawk components ;).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967778#3967778
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967778
More information about the jboss-user
mailing list