Im trying to add MyFaces Tomahawk to my JSF 2.0 project in NetBeans. I readed a lots of coments where it says how to do it but it doesnt work there are the steps i have done:
1º Copy all jar's libraries downloaded from Tomahawk website in /%ProjectFolder%/web/WEB-INF/lib (i havent got the lib folder so i created it)
2º Add the library to the proyect using Properties/Libraries/Add folder in netbeans
3º Add the following code to web.xml:
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
</filter>
<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>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
4º Add to index.xhtml the following line in html tag:
xmlns:t="http://myfaces.apache.org/tomahawk"
Well, i think i dont need to do more but when i do the last step, NetBeans say me:"No library found for this namespace".
Im sure im doing it bad but i dont know what i need to do..... some ideas?
I hope this post work as a tutorial because i think its necesary.
Thanks ^^
EDIT:
I founded the error: we need another step:
5º You have to download This example file. Its a collection of examples in a War file. Open it with winrar or similar and unrar myfaces-example-simple20-1.1.11 folder. After that, go to myfaces-example-simple20-1.1.11\WEB-INF\src\META-INF\ directory and copy all files in your web/META-INF/. Then, netbeans will show you the help and autofill options.