facebook

DTD Validation with Custom Facelet Components

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #316943 Reply

    gburgalum01
    Participant

    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.

    #316981 Reply

    support-swapna
    Moderator

    gburgalum01,

    Can you check if this thread helps ?
    http://www.myeclipseide.com/PNphpBB2-printview-t-5942-start-0.html

    Let me know how it works for you.

    #317254 Reply

    gburgalum01
    Participant

    Thank you for the suggestion. Once I added the DTD to the XML Catalog, my application had no issues in locating it.

    #317259 Reply

    support-swapna
    Moderator

    gburgalum01,

    Glad that it is working.
    Do let us know if you have any other issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: DTD Validation with Custom Facelet Components

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in