I am currently using MyEclipse Blue v8.6.1 and am attempting to build a custom Facelet component in the application that I’m designing.
I’ve created the taglib file – named brm.taglib.xml – and have placed it in the WEB-INF/facelets/tags folder in my Web project.
<?xml version="1.0"?>
<!DOCTYPE facelet-taglib SYSTEM "facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>brmtest</namespace>
<tag>
<tag-name>bodyTag</tag-name>
<source>bodyTag.xhtml</source>
</tag>
</facelet-taglib>
The DTD file has also been placed in the WEB-INF/facelets/tags folder in my Web project.
When I attempt to access the page that utilizes this component, I’m given an error than the library cannot be loaded because the DTD file cannot be located. The location it appears to be looking for is not in my workspace at all. It actually is looking for the file in the location referenced by the {WORKING_DIR} environment variable on my development WAS server.
Two questions:
1) Where is the best place in my web project to put the DTD file?
2) How do I reference the DTD file from within my Facelet tag library given above?
Any help would be appreciated.
Thanks.