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

Bug 321616

Summary: TAGX files validation should warn about duplicate attribute names
Product: [WebTools] WTP Source Editing Reporter: Missing name <a.in.the.k>
Component: jst.jspAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3 CC: ccc, nsand.dev
Version: unspecified   
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Missing name CLA 2010-08-03 11:28:24 EDT
Build Identifier: 

In TAGX files the validation should warn about duplicit
jsg:directive.attribute with the same name otherwise runtime complains with 

The value of the name attribute of the attribute directive 
and 
the value of the name attribute of the attribute directive 
in line 17 are the same.

Reproducible: Always

Steps to Reproduce:
In TAGX files the validation should warn about duplicit
jsg:directive.attribute with the same name otherwise runtime compalins with error:

The value of the name attribute of the attribute directive 
and 
the value of the name attribute of the attribute directive 
in line 17 are the same.
Comment 1 Carl Anderson CLA 2010-08-03 12:13:07 EDT
a.in.the.k, is this validation warning happening in Helios?  That would correspond to WTP 3.2.
Comment 2 Missing name CLA 2010-08-03 13:45:23 EDT
Sorry bad formulation probably: I will reprhase

WTP 3.2.1 DOES NOT WARN you about duplicit attribute edeclarations in tagx files.

First time you see the warning is when container processes the tag file.
(my error is from Tomcat for example).

I want to extend WTP to be able to validate this (I have not seen any option like this in property panel), neither any warning in problems section after validation.

So this is request for enhancement.

Understood, sorry again.
Comment 3 Missing name CLA 2011-09-17 18:36:04 EDT
please could you respond to my last comment ? Thank you
Comment 4 Nick Sandonato CLA 2011-09-19 18:12:36 EDT
(In reply to comment #3)
> please could you respond to my last comment ? Thank you

I think this could be a useful feature. We'll see if we can get it in for Juno.
Comment 5 Nick Sandonato CLA 2011-09-20 11:54:03 EDT
I delivered the changes so that tag/tagx files will now validate duplicate attribute names. The preference for controlling severity can be found under the Directives section on Web > JSP Files > Validation.