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 111651 - AJAX: Auto Complete Text Field - doesn't work
Summary: AJAX: Auto Complete Text Field - doesn't work
Status: VERIFIED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-01 15:48 UTC by Roman Mostyka
Modified: 2007-09-21 08:18 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple application with auto complete text field. (1.30 MB, application/octet-stream)
2007-08-02 12:47 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-08-01 15:48:22 UTC
1. Create a visual web application.
2. Add the Auto Complete Text Field component to the page.
3. Double-click the Auto Complete Text Field component to add an event handler and open its source in the Java Editor.
4. Add following code to autoComplete1_complete method:
  result.addItem("Item1");
  result.addItem("Item2");
  result.addItem("Item3");
5. Deploy and run the application. 

Result: When Auto Complete Text Field has focus, empty popup appears and nothing changes when start to type. Main
functionality doesn't work.
Comment 1 Jayashri Visvanathan 2007-08-02 00:08:59 UTC
I can't reproduce the problem. I am using Firefox 2.0.0.6.
 are you sure you are using the right version of the complib.If you had installed previous version
please make sure you clean up following the instructions here:
http://www.netbeans.org/kb/55/vwp-ajaximportcomponents.html

Are you running your browser in a locale other than English ?
Comment 2 Roman Mostyka 2007-08-02 12:46:16 UTC
I can reproduce it constantly. I'm using ui-0.1.2.complib which was downloaded from
http://jupiter.czech.sun.com/wiki/view/Creator/CreatorAJAXEffort.
I attached simple application with Auto Complete Text Field.
Comment 3 Roman Mostyka 2007-08-02 12:47:10 UTC
Created attachment 46054 [details]
Simple application with auto complete text field.
Comment 4 Roman Mostyka 2007-08-02 12:51:53 UTC
I have english version of Windows XP and of Mozilla Firefox, but location, which is set for me, id Russia. But I don't
think that it can be a reason, because everything on my desktop is in english.
Comment 5 Matthew Bohm 2007-08-02 19:31:22 UTC
Roman's SimpleAutoComplete project works correctly for me.
Comment 6 Roman Mostyka 2007-08-03 10:08:10 UTC
Can You try on other host or ask somebody to try to reproduce.
Because I have this problem and it won't be good if customer will come into collision with these components.
Besides not only I have this issue, Petr also has.
Comment 7 Petr Blaha 2007-08-03 10:12:00 UTC
I encountered this issue with Ubuntu and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20060601
Firefox/2.0.0.5 (Ubuntu-edgy). 
Comment 8 Matthew Bohm 2007-08-09 19:46:51 UTC
I cannot reproduce this issue, but I am currently investigating such blueprints issues under the theory that some
environmental difference is the cause.
Comment 9 _ krystyna 2007-08-28 01:31:54 UTC
Tried to reproduce on Vista with IE7, jdk1.5.0_12 with today's javaee 08271200
(not code coverage build), with glassfish b58c, but could not reproduce.


What JDK were you using Roman, Petr?
Comment 10 Roman Mostyka 2007-08-28 10:39:24 UTC
Product Version: NetBeans IDE Dev (Build 070828)
GlassFish version: V2 b58c
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Comment 11 Roman Mostyka 2007-08-28 10:53:51 UTC
I tried with JDK 1.5.0_12 and it works. So probably it is JDK 1.6 issue.
Comment 12 Petr Blaha 2007-08-28 10:54:34 UTC
I use Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105, Ubuntu and Sun Java System Application Server 9.1 (build b57-rc)
Comment 13 Lark Fitzgerald 2007-08-28 21:21:50 UTC
Bingo.  When I switch to jdk 1.6 I see all the issues also.  It works great with jdk 1.5
Comment 14 Matthew Bohm 2007-08-30 06:24:31 UTC
Yes! I can reproduce this with jdk1.6.0_02. Based on a quick scan, it looks like duplicate calls to shale are occurring,
resulting in the Ajax response being written out twice. I'll have to investigate further. Many thanks, krystyna!
Comment 15 Lark Fitzgerald 2007-09-20 16:17:21 UTC
Matt did a woodstock related fix for this.
Verified works for me.  Testing with Solaris (FF) & Vista (IE7 & FF)
Comment 16 Roman Mostyka 2007-09-20 16:25:19 UTC
Is it fixed or works for you?
And by the way, which Java did you use?
I hope you remember that this issue depends from JDK version.
Comment 17 Lark Fitzgerald 2007-09-20 16:50:14 UTC
Its fixed and works for me.  I tested with jdk 5_12 and 6_03.
Comment 18 Roman Mostyka 2007-09-21 08:18:03 UTC
Verified with build 200709181200 and complib 0.1.2.