This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 120833 - Provide information on variables defined by custom tag handlers
Summary: Provide information on variables defined by custom tag handlers
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks: 85957
  Show dependency tree
 
Reported: 2007-11-01 16:08 UTC by Tomasz Slota
Modified: 2016-07-07 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2007-11-01 16:08:03 UTC
The JSP parser should provide information on variables defined by custom tag handlers.

See issue 85957
Comment 1 Petr Pisl 2007-11-01 18:39:14 UTC
The information are already provided. You can obtain obtain it from a TagInfo class method TagVariableInfo[]
getTagVariableInfos();. The TagInfos you can obtain from TagLibraries infos and the list of used TagLibraries is
available through the PageInfo. You have to find out which tags are used in the jsp page. These information is not
available now, but you can build it from nodes tree of jsp and custom tags. 

The solution should work, but probably there should be a support for such cases in the jsp parser. Something like
getTagVariableInfos(int offset) in the jsp parser. The jsp parser will find out list of custom tags from the node tree,
which has information about jsp and custom tags in a text form. From this tree we should be able to build a stack of
used tags (tagInfos) until the offset and collect all variables defined by the used tags. 

Probably I will not have time to do such support in the jsp parser in NetBeans 6.0 time frame, because it's new
functionality, which requires bigger effort.
Comment 2 Martin Balin 2016-07-07 08:56:06 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss