Bug 272701 - [validation] incomplete opening tag not seen with jstl choose tag
Summary: [validation] incomplete opening tag not seen with jstl choose tag
Status: CLOSED DUPLICATE of bug 152620
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-04-17 10:04 EDT by David Smith CLA
Modified: 2010-10-05 18:08 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith CLA 2009-04-17 10:04:35 EDT
Example:

	<c:choose>
		<c:when test="${lineInfo.count % 2 == 0}">
     		<tr bgcolor="#EFEFFF"> 
     	</c:when>
		<c:otherwise>
			<tr bgcolor="#FFFFFF"> 
		</c:otherwise>
	</c:choose>
		<td><fmt:formatDate value="${ticket.targetDate}" pattern="dd/MM/yy HH:mm" /></td>		
	</tr>
	
The jsp editor produces a no <tr> start tag error.  I.e. it can't see the <tr> inside the choose even though there is one inside all choices so the code is valid.
Comment 1 Nitin Dahyabhai CLA 2009-04-19 18:38:49 EDT
David, which version were you using?

Also, the HTML validator doesn't understand the output created by that custom tag, there's actually no way to do that short of executing the tag.  It is a real problem, but we're not sure how to improve it reliably.  For now, you have new validation preferences in 3.0 to help work around it.
Comment 2 David Smith CLA 2009-04-20 04:54:58 EDT
I'm using Eclipse 3.3 with WTP 2.0.2 at the moment.  I don't understand why it cannot be done, other editors can look at conditionals although I can see how it would be more complicated than a markup language validator.  Would it not be possible to build something as JSTL is such a standard now?  I'm afraid I'm not up to doing anything about this myself yet but I think a lot of people would appreciate this and be willing to work on the problem as JSTL is quite important/popular these days.
Comment 3 Ian Tewksbury CLA 2010-02-01 14:48:28 EST
This is still an issue in WTP 3.2
Comment 4 Nick Sandonato CLA 2010-10-05 18:08:19 EDT

*** This bug has been marked as a duplicate of bug 152620 ***