alexyigidey8 / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
1 stars 0 forks source link

Strange work of TextFieldListenerAdapter onChange #216

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
======================================
What steps will reproduce the problem?
======================================

1. I have a new GWT project generated by Eclipse with Instantiations GWT
Plugin and all necessary libraries included.

2. I place following code in main onModuleLoad:

Panel panel = new Panel();

TextField field = new TextField();

field.addListener( new TextFieldListenerAdapter()
{
    public void onChange(
        Field field,
        Object newVal,
        Object oldVal )
    {
        System.out.println( "onChange: " + oldVal + " changed to " + newVal );
    }
} );

panel.add( field );
new Viewport( panel );

3. As you can see, it's just a single textfield with overrided onChange
listener, which prints some info to the console.

=====================================================
What is the expected output? What do you see instead?
=====================================================

I expect it to write something to console when changed and lost the focus,
but it works only from time to time. On some launches it works, on some it
doesn't, sometimes it stops or starts working during the same launch. 

====================================================================
What version of the product are you using? On what operating system?
====================================================================

I'm using the version 2.01 of the gwtext.jar, downloaded on 13/02/2008.
Operating system is Windows XP SP2, jdk version 1.6.04, Eclipse 3.3.1.1
with all available updates to 14/02/2008.

================================================
Please provide any additional information below.
================================================

I've seen this issue: http://code.google.com/p/gwt-ext/issues/detail?id=130
, but it seems rather old and there is no answer or comments, so I suppose
I should create this one.

Original issue reported on code.google.com by stas.svi...@gmail.com on 14 Feb 2008 at 9:02

GoogleCodeExporter commented 9 years ago
http://gwt-ext.com/forum/viewtopic.php?f=5&t=74&p=4805&hilit=onchange#p4805

Original comment by micg...@gmail.com on 13 Jun 2008 at 1:19