Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313831

Summary: [WPE] Taglib directive incorrectly placed and formatted on tag drop
Product: [WebTools] Java Server Faces Reporter: Gerry Kessler <gerry.kessler>
Component: JSF ToolsAssignee: jsf inbox <jsf-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: raghunathan.srinivasan
Version: 3.2   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gerry Kessler CLA 2010-05-20 20:08:05 EDT
Dropping a tag onto a jsp in WPE where there was no previous taglib reference results in a taglib reference before the page directive.  Also, the new taglib directive is formatted poorly.

eg.  Today we get,

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

where as, it would be preferrable to result in,

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>