javarefreshvaadinicepush

Vaadin 7 - update textarea at value changed


I'm new at vaadin and I want to display some infologs in a textarea. Currently I have set the pushmode in my CustomComponent to PushMode.AUTOMATIC ( @Push(PushMode.AUTOMATIC) ). But this works only the first time. To refresh the text I have to resize the window manual or click a button. I found something called ICEPush but I do not understand this stuff :( and do not found good tutorials...

Has anybody a hint for me?

Thanks for help!


Solution

  • have you made sure you changed the TextArea value using the ui.access method, and called the ui.push() method?

    Kind of like this:

    ui.access(new Runnable() {
        @Override
        public void run() {
            textArea.setValue(newValue);
            ui.push();
        }
    });