Description:
|
Test case:
EXECUTE: 1. Create JSF KickStart project 2. Create test.jsp page: {code} <%@ 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> {code}
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
|