Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 107254 - [taglib] tld element name-from-attribute not taken in account in JSP editor
Summary: [taglib] tld element name-from-attribute not taken in account in JSP editor
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 1.5 M5   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 14:53 EDT by Sebastien Tardif CLA
Modified: 2006-11-28 15:59 EST (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 Sebastien Tardif CLA 2005-08-17 14:53:41 EDT
Having a JSP with this:
<dh:pageSelector id = "pageSelector" />

Where the definition of pageSelector has this in the tld:
<tag>
   <name>pageSelector</name>
   <tag-class>com.docharbor.taglib.PageSelector</tag-class>
   <body-content>empty</body-content>
   <variable>
      <name-from-attribute>id</name-from-attribute>
      <variable-class>com.docharbor.taglib.PageSelector</variable-class>
      <declare>true</declare>
      <scope>AT_BEGIN</scope>
   </variable>
		
The JSP editor should then know that a variable named "pageSelector" exist 
after the use of the tag pageSelector. The JSP editor should also know the 
type of variable pageSelector which is com.docharbor.taglib.PageSelector and 
then show the method available from instance pageSelector.
Comment 1 Ron Yang CLA 2006-01-25 16:05:52 EST
as of the I200601191656 webtools integration build, it treats name-from-attribute the same as it treats name-given.  That is, the scripting variable is defined, but the attribute name is used literally.
Comment 2 Nitin Dahyabhai CLA 2006-02-09 16:50:13 EST
Looks like a problem in the TaglibHelper.addVariables implementation.  It was not using the TLDVariable.getNameFromAttribute() result with the custom Element to get the right name.
Comment 3 John Lanuti CLA 2006-11-28 15:59:29 EST
This is part of a mass update to close out all stale WTP resolved bugs from the 1.0.x and 1.5.0 timeframe.  If you feel this bug was closed inappropriately, please reopen.

Thanks, John Lanuti