Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12304

Make Quick Fix "Add tag library definition" work with KB Model instead of using plain tag library list

    XMLWordPrintable

Details

    Description

      WTP Validator marks unknown tags with problem markers: "Unknown tag (<prefix name>:<tag name>)"
      We should take all tag libraries in the project which contain the same tag name and offer quick fix "Add tag library definition" for all of them.
      Tag libraries with default prefix the same as "prefix name" from problem marker should go first.

      Test case:

      EXECUTE:
      1. Create JSF Kick Start project
      2. Open hello.jsp file in Visual Page Editor
      3. Add tag <x:if></x:if>
      ASSERT: New tag is marked with problem annotation "Unknown tag (x:if)"
      EXECUTE:
      4. Point mouse to tag <x:if>
      ASSERT: Should be 6 quick fixes in Text Hoover:

      Attachments

        1. AddTaglibDefinition.png
          71 kB
          Daniel Azarov
        2. AddTaglibDefinition.png
          42 kB
          Daniel Azarov
        3. AddTaglibDefinition.png
          56 kB
          Daniel Azarov

        Issue Links

          Activity

            People

              dazarov_jira Daniel Azarov (Inactive)
              dazarov_jira Daniel Azarov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: