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 82642 - [cc] JSP Editor Auto-Complete pop-up does not list "<%" as choice
Summary: [cc] JSP Editor Auto-Complete pop-up does not list "<%" as choice
Status: RESOLVED DUPLICATE of bug 49202
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 19:50 UTC by ssoong
Modified: 2006-08-21 13:27 UTC (History)
0 users

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 ssoong 2006-08-14 19:50:42 UTC
NetBeans IDE Dev (Build 200607161800)
1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-b05
Windows XP version 5.1 running on x86
================================================

Create a new blank jsp. Let me call it a.jsp .
Enter this in to start a java code section
(aka "scriplet"):

<%

Then you will be confronted with a pop-up suggesting
<%@include ... %>
<%@page ... %>
<%@taglib... %>

What about
<% ... %>

?

It might be I am too lazy to press the escape key. However, most and many a 
times, in the heat of the moment I press the space-bar unaware of the pop-up 
and then I have to ctrl-z to remove auto-complete's presumptuous choice for 
me. (Especially after two month's foray into Eclipse and finding it inadequate 
for my needs.)

I'm sure this is an easy "bug/feature" to fix. Just add one more item to a pop-
up list.

Thank you.
Comment 1 Marek Fukala 2006-08-14 20:16:33 UTC
Thanks for the report. AFAIK I already have such enhancement assigned to myself.
However, I also noticed, that recently, during writing a scriptlet into a JSP
page the jsp directives are autocompleted unintentionally and hence requires
some extra effort to be deleted. I'll check this. As for the <% %> CC item as I
said, there is already an issue (cannot find now) and moreover it is not that
easy as it can seem to be to add it :-). Thank you.
Comment 2 Marek Fukala 2006-08-21 13:27:36 UTC
The cause of the problem I described is very simple :-). If you type <% in the
editor, after a very short time the CC is being displayed so it can happen that
one types <% and then wants to create a new line so presses enter. But in the
same moment, the CC appears so the enter keystroke goes to the CC instead of the
editor pane and the first CC item (<%@page %>) is completed. This can be quite
bothering though it happens not often. The problem will disappear once we have
the <% %> item in the CC list. Marking this issue as duplicate of an older one
with the same request.

*** This issue has been marked as a duplicate of 49202 ***