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

"Add missing required attribute(s)" quick fix for "Missing required attribute" WTP problem marker

XMLWordPrintable

    • A new quick fix has been implemented for the WTP issue marker: Missing required attribute. The new quick fix allows for the missing attributes to be automatically added into the code being written.
    • Documented as Feature Request

      Now WTP creates such problem markers only for jsp files and only after file saving

      Test case:

      EXECUTE:
      1. Create JSF Kickstart project
      2. Create file test.jsp:

      <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
      
      <html>
          <head>
          	<title>Input User Name Page</title>
          </head>
          <body>
          <x:if></x:if>
          </body>
      </html>
      

      3. Save file test.jsp and close editor
      4. Point mouse to tag <x:if>
      ASSERT:
      Text hover with quick fix "Add 'select' attribute to 'x:if' tag" appears
      EXECUTE: Select quick fix
      ASSERT: attribute 'select' appears in tag 'x:if'

        1. AddAttributeQuickFix.png
          43 kB
          Daniel Azarov
        2. AddAttributeQuickFix.png
          44 kB
          Daniel Azarov

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

              Created:
              Updated:
              Resolved: