Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316538 - Incorrect error message reported for tags with missing attributes..
Summary: Incorrect error message reported for tags with missing attributes..
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 16:50 EDT by Raghunathan Srinivasan CLA
Modified: 2010-06-11 11:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.