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 153938 - completion for <jsp:useBean class="j| does not work
Summary: completion for <jsp:useBean class="j| does not work
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
: 199424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-26 13:56 UTC by relics71s
Modified: 2015-09-17 13:10 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Taglib showing attributes (171.11 KB, image/jpeg)
2008-11-28 13:46 UTC, relics71s
Details
Attachment with error message for Taglib (181.64 KB, image/jpeg)
2008-11-28 13:47 UTC, relics71s
Details
Attachment with error message for useBean (181.02 KB, text/plain)
2008-11-28 13:47 UTC, relics71s
Details
Screen show showing error using useBean (181.02 KB, image/jpeg)
2008-11-28 13:50 UTC, relics71s
Details
About ScreenCapture (92.15 KB, text/plain)
2008-11-28 17:48 UTC, relics71s
Details
About ScreenCapture (92.15 KB, image/jpeg)
2008-11-28 17:48 UTC, relics71s
Details

Note You need to log in before you can comment on or make changes to this bug.
Description relics71s 2008-11-26 13:56:45 UTC
When using <%@ taglib uri="  Netbeans 6.1 used to show a list of available uri e.g. http://java.sun.com/jsp/jstl/core 
In 6.5 I get a red status message saying "equal symbol expected".

The same thing is happening with the <jsp:useBean class=" .  6.1 displays a list of classes. 6.5 shows a red status
message "equal symbol expected"
Comment 1 David Konecny 2008-11-27 00:28:19 UTC
Works fine for me on latest dev build. Can you reproduce it always even on fresh new Web Application project?
Comment 2 relics71s 2008-11-27 01:37:16 UTC
dkonecny,

Yes.  I even did a clean install on a machine that never had Netbeans... and still cant get it to work.

Comment 3 Marek Fukala 2008-11-28 10:28:26 UTC
Completion in other places works? If you register your tag library, type < and invoke the completion, do you see the
custom tags there?

Where exactly the error "equal symbol expected" appear? Is it just shown in a red line below the editor window or there
is just an annotation in the text?

Can you please create a snapshot of the editor in that state?
Comment 4 relics71s 2008-11-28 13:46:13 UTC
Created attachment 74274 [details]
Taglib showing attributes
Comment 5 relics71s 2008-11-28 13:47:05 UTC
Created attachment 74275 [details]
Attachment with error message for Taglib
Comment 6 relics71s 2008-11-28 13:47:57 UTC
Created attachment 74276 [details]
Attachment with error message for useBean
Comment 7 relics71s 2008-11-28 13:50:05 UTC
Created attachment 74277 [details]
Screen show showing error using useBean
Comment 8 relics71s 2008-11-28 13:53:29 UTC
I've attached 3 screen shots. 
The first one showing how the code complete wizard looks when I first using the taglib directive.
The second and third shows the error message I get.

I've added the jstl files to my library.


Thanks.
Comment 9 Marek Fukala 2008-11-28 15:43:06 UTC
Strange, I cannot reproduce any of the problems on latest trunk build. Can you please tell me what build number you
have? Please put here the about Netbeans window content, specifically content of the text area at the bottom of the
window. Thanks.
Comment 10 relics71s 2008-11-28 17:48:06 UTC
Created attachment 74285 [details]
About ScreenCapture
Comment 11 relics71s 2008-11-28 17:48:52 UTC
Created attachment 74286 [details]
About ScreenCapture
Comment 12 relics71s 2008-11-28 17:50:05 UTC
mfukala,

I've posted the about screen.

Thanks a lot for helping.

Comment 13 Marek Fukala 2008-12-02 13:22:47 UTC
Thanks. Reproducible on 6.5 FCS build. I'll address this later during 7.0 cycle.
Comment 14 Marek Fukala 2008-12-02 13:28:06 UTC
Oops, user error :-) The message "Equals symbol expected" is reproducible but not the missing completion. The message is correct since the source is 
syntactically broken.

If you do following:
1) run netbeans with new userdir
2) create new web project with a web server
3) add JSTL library
4) type <%@taglib uri="
5) and invoke the completion

do you really do not see the URIs???
Comment 15 relics71s 2008-12-03 01:27:18 UTC
mfukala,

Nope.. I don't see see the drop down.

I've installed the latest nightly build and it working now.

Thanks for all you help.
Comment 16 David Konecny 2008-12-03 01:46:06 UTC
Marek, is this 65fixes2-candidate? When was it fixed?
Comment 17 Marek Fukala 2008-12-03 09:22:16 UTC
Our QE jsedek confirmed that there is no such problem in 6.5 FCS build (the completion offers the URIs). I do not understand why it doesn't work for the 
reporter. I am not aware of any fixes related to this committed after FCS (20081110) build.
Comment 18 Petr Jiricka 2009-11-03 13:16:31 UTC
I tried with the latest NB 6.8 build (| denotes caret position):
1/ <%@ taglib uri="| works well
2/ <jsp:useBean class="j|" id="a"/> also works well
3/ <jsp:useBean class="j| does not work

Looks like the page needs to be parseable?



Comment 19 Marek Fukala 2009-11-03 14:02:07 UTC
This is likely related to the fact that the java embedding is not created for the unfinished attribute. The lexical java
embedding is done in SimplifiedJSPServlet by Tomasz, reassigning.
Comment 20 Marek Fukala 2010-05-13 14:40:01 UTC
Currenlty there are two problems:

1) the java embedding is not created and the completion doesn't work if the attribute is not finished:

<jsp:useBean class="j|

2) the completion doesn't work if the ID attribute is missing

<jsp:useBean class="j|" />

3) the completion doesn't work if there's no prefix in the attribute value
<jsp:useBean class="|" id="my"/>
Comment 21 Vladimir Riha 2013-07-30 10:48:40 UTC
*** Bug 199424 has been marked as a duplicate of this bug. ***
Comment 22 Martin Balin 2015-09-17 13:10:28 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.