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

Bug 316538

Summary: Incorrect error message reported for tags with missing attributes..
Product: [WebTools] WTP Source Editing Reporter: Raghunathan Srinivasan <raghunathan.srinivasan>
Component: jst.jspAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED NOT_ECLIPSE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Raghunathan Srinivasan CLA 2010-06-10 16:50:14 EDT
When I place a transform tag inside a JSP page it has an incorrect error
message:

isValid == false.

The JSP page is this:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<c:import var="rssFeed" url="http://slashdot.org/slashdot.rdf" />
<c:import var="rssToHtml" url="/WEB-INF/xslt/rss2html.xsl" />
<x:transform />

</f:view>
</body>
</html>

STEPS TO DUPLICATE:

1) Create a dynamic web project with JSTL 1.2 and JSF 1.2
2) Create a JSF page
3) Add the code between the f:view tags

Expected:

valid error messgae

Actual:

error message for transform seems to not tell what attribute is missing like
other tags . The same is true for the JSTL Core tag, c:foreach
Comment 1 Nitin Dahyabhai CLA 2010-06-10 17:30:17 EDT
"isValid == false" is the default error text from javax.servlet.jsp.tagext.TagExtraInfo#validate(TagData).  Our validator can only report missing attributes when the TLD specifies one as required--I don't think that's the case here.
Comment 2 Nitin Dahyabhai CLA 2010-06-10 17:52:23 EDT
Reopening.  Our supplied TagLibraryInfo is incomplete.
Comment 3 Nitin Dahyabhai CLA 2010-06-11 11:00:55 EDT
Reresolving.  x:transform requires the "xslt" attribute to validate properly, but doesn't say so in its TLD file.  Perhaps a newer version of the tag/tei will generate a usable validation message.