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.
The IDE is not able to resolve the implicit variables defined by the custom taglib in a jsp page. The jar containing tld and taglib implementation is already there in the web application's classpath. I can see the code completion for the jsp tags but the IDE shows the error for the implicit variables defined in the TagExtraInfo class of those tags. Please refer to the attached sample application. Steps to reproduce: - Open the attached NetBeans project - Open WEB-INF/jsp/HelloWorld_view.jsp - You can find "renderResponse" variable is shown as unresolved even though this variable is defined in the DefineObjectsTagExtraInfo taglib class. - But the other taglib code completion help for all <portlet:* tags are coming fine. Let me know if you need any other info.
Created attachment 65332 [details] TagLibApp.zip
reproducible. Likely JSP parser doesn't provide such information or virtual java source just doesn't reflect it. Reassigning to Tomasz for evaluation.
Are we going to fix it for NB 6.5 ?
It's a usability issue. Many users post messages about this issue. It has been there since NB 6.1 . So changing the priority to P2.
I filed issue 145813 about the missing data from JspParser. Here is a draft of the solution that will be implemented in the SimplifiedJSPServlet class: JspSyntaxSupport syntaxSupport = JspSyntaxSupport.get(doc); Collection<String> prefixes = JspUtils.getJSPColoringData(doc, fobj).getPrefixMapper().keySet(); for (String prefix : prefixes) { List<TagInfo> tags = syntaxSupport.getAllTags(prefix); for (TagInfo tag : tags) { for (TagVariableInfo var : tag.getTagVariableInfos()) { // Create Variable Definitions } } }
*** Issue 146342 has been marked as a duplicate of this issue. ***
Fixed. http://hg.netbeans.org/main/rev/f8131e3a920b
Integrated into 'main-golden', will be available in build *200809100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f8131e3a920b User: Tomasz Slota <tslota@netbeans.org> Log: #141287: Cannot resolve implicit variables in a JSP file
Verified.