I haven't worked with ext-gwt, but this is what you have to do: You have to use the KeyListener AND add a listener for ONPASTE. The 'Change' event is provided by the browser, and it is triggered only while focus goes away (during a blur), and if text has changed.
Thanks for your answer. Unfortunately, after trying to apply your solution, it seems the Event type 'OnPaste' in Ext-GWT - which represents the DOM ONPASTE event - is not working either. :( – BerBaquero May 6 at 22:12 Check out if this helps.
– Raze May 7 at 5:00 The support for the paste event differs quite a lot from browser to browser, in detail: http://www.quirksmode.org/dom/events/cutcopypaste.html (it looks like it doesn't work with Opera at all). Try it with your browser on the test page. An important difference may be, on which element each browser fires the event - and on which one Ext-GWT registers the listener.
– Chris Lercher May 7 at 8:07.
I don't think there is an event that works cross-browser for all situations. So the "poor man's solution" is to poll the text field every second or so. In fact, such a test can be performed pretty quickly, and if you don't use it on lots of text fields at once, you should be fine.
You can use my little example code if you like (it works on a plain GWT TextBox, but it should be straightforward to adapt for an Ext-GWT TextField) @Override public void onModuleLoad() { final TextBox textBox = new TextBox(); final int delayMilliseconds = 1000; Scheduler.get(). ScheduleFixedDelay(new RepeatingCommand() { private String previousValue = ""; @Override public boolean execute() { final String newValue = textBox.getValue(); if (!previousValue. Equals(newValue)) { try { valueChanged(); } finally { previousValue = newValue; } } return true; } private void valueChanged() { // React on the change Window.
Alert("Value changed"); } }, delayMilliseconds); RootPanel.get(). Add(textBox); }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.