TextArea textChange() oddity

Hello,

I would like to set (update) the TextField’s value to TextArea’s text length but nothing happens while i’m typing in the TextArea just a 0 value appears in the TextField when i hit the first key in TextArea.

Could you help me what did i wrong?


http://pastebin.com/Amq3ZNyw

Thanks!

Try setting editor to setImmediate(true) and report back.

Tried, thanks, but nothing changed unfortunately.

It’s unintuitive, but TextChangeEvents don’t actually change the server-side value of the text area or text field. Listen for ValueChangeEvents instead, or, if you need the more real-time interaction that TextChangeEvents provide, use the getText() method on the event.

Thank you Johannes!