2 Replies Latest reply on Mar 4, 2008 1:01 PM by erimag

    Tag completion

    nickarls

      Hi,

      How are the tld:s related to the code completion in tags (in the seam module)?

      If I e.g. look at the completion for s:selectItems, I see no "itemLabel" or "itemValue" even if they are in s.tld. Or I get completion for a "hideNoSelection" but s.tld calls it "hideNoSelectionLabel" etc...

        • 1. Re: Tag completion
          akazakov

          Code completion for xhtml files does not use TLDs. JBoss Tools uses its own XMLs which are generated from TLDs. We need it to provide some aditional info for Code Assist. JBoss Tools recognize tags of seam 1.2 and 2.0.0. It looks at tld within project and use XML for proper version of tld.
          I guess you use Seam 2.0.1. But that tld has the same version (2.0) as Seam 2.0.0 TLD. So when you get proposals in XHTML in project with Seam 2.0.1 you get proposals from our XML for Seam 2.0.0 TLD.

          JSP Editor use real TLDs for Code Complition and it doesn't have such problems.

          It's a problem and I think we should improve our code assist for XHTML.

          Here is a workaround:
          You can edit /eclipse/plugins/org.jboss.tools.common.kb_\schemas\tld\JBossSeam2_0.xml
          to provide correct proposals for Seam 2.0.1

          • 2. Re: Tag completion
            erimag

            If the XML schemas for code completion are generated, perhaps a tool for generating schemas for custom taglibs from TLDs would be useful somewhere in JBoss Tools?