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

Make Quick fix for problem markers "Unknown tag" work on temporary WTP annotations

XMLWordPrintable

      Test case:

      EXECUTE:
      1. Create JSF KickStart project
      2. Create test.jsp page:

      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      
      <f:loadBundle var="Message" basename="demo.Messages" />
      
      <html>
      	<head>
      		<title>Hello!</title>
      	</head>
      
      	<body>
      		<f:view>
      			<h3>
      			
      			</h3>
      		</f:view>
      	</body>
      </html>
      

      3. Open test.jsp in Visual Page Editor

      4. Add tag: <h:outputText value="" /> inside tag <h3>

      5. Do not save the file
      ASSERT: problem annotation on string "<h:outputText value="" />" appears

      6. Point mouse to string "<h:outputText value="" />"

      ASSERT:
      Quick fix "Insert '<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>" tag library definition' appears in Text Hoover

      7. Select Quick Fix

      ASSERT:
      tag <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> inserted in first line of the test.jsp and problem annotation on string "<h:outputText value="" />" disappears

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

              Created:
              Updated:
              Resolved: