7 Replies Latest reply on Nov 7, 2008 6:55 AM by maxandersen

    need help on import tld file

    skyon

      Can anybody show me how to import a custom tld file?

      I open the Import Tag dialog, click "Browse" for TLD file, but nothing showing up in the popup.

      Thanks,

        • 1. Re: need help on import tld file
          akazakov

          Where is your tld placed? Browse TLD dialog looks only in jars and tlds in class path (including web-inf).
          Just drag your TLD file and drop it to the Palette if you have it outside class path.

          • 2. Re: need help on import tld file
            skyon

            the TLD file is packaged into a jar, in the /META-INF/ folder, and the jar is in the classpath.

            I also tried to put the TLD file directly into /lib path of my project and add it to the build path, but the import dialog is not able to discover it.

            BTW I am using eclipse 3.4.1 and Jboss tools 3.0.0 Beta 1

            I had the same issue in eclipse 3.3 and tools 2.1.0GA

            • 3. Re: need help on import tld file
              akazakov

              Can you report it to the jira? And attache sample project to help us to reproduce it.

              • 4. Re: need help on import tld file
                skyon

                I got my problem worked around.

                Basically it is not finding any of the TLD files because my projects are not considered having JSF capabilities. (they are existing projects setup using SEAM, facelets and richfaces).

                Following akazakov's suggestion creating a sample project I used JBoss Tools to generate a JSF project. And it worked this time. The good thing is that after I loaded the TLD file I deleted the testing project and it still works.

                So I am good with it now.

                Thanks a lot akazakov.

                • 5. Re: need help on import tld file
                  maxandersen

                  Alexey, is there any reason why we require the TLD files to be in a JSF project ?

                  • 6. Re: need help on import tld file
                    akazakov

                    Our Import TLD Dialog shows the tree of jboss tools web projects (with jsf or struts nature). So if the project doesn't have jsf (or struts) nature then we don't gather TLDs from such projects. But it is possible to look for all tlds from all WTP projects. It's a feature request.

                    • 7. Re: need help on import tld file
                      maxandersen

                      If our backend just need a TLD location then no reason to limit to specific project types IMO