MyFaces Tomahawk quick installation guides
To install MyFaces Tomahawk component library you should first download tomahawk.jar file and import them in you class path. Be sure that you already have installed and verified installation of standard JSF library. After you import JARs, you should add couple of lines in your web.xml file:
<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>
<filter-mapping>
<filter-name>
MyFacesExtensionsFilter
</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>
/faces/myFacesExtensionResource/*
</url-pattern>
</filter-mapping>
Empty template for MyFaces Tomahawk JSP file will look like this:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<HTML>
<f:view>
<head>
<title>Title</title>
</head>
<body>
<h:form>
YOUR CODE
</h:form>
</body>
</f:view>
</html>
