I am using Vaadin 7.4.7 with the CKEditor for Vaadin widget. It extends AbstractField. and is a LegacyComponent.
What I have noticed is that I have a CKEditor widget in a FieldGroup (all immediate fields), and the view includes a Save button. When I click the Save button, I seem to receive events like this:
- The Save Button’s ClickListener.buttonClick event fires.
- The CKEditor widget’s ‘changeVariables’ method is called.
- The CKEditor’s widget’s valueChangeListener.valueChanged event fires.
I’m not sure exactly how events are organized when transferring data from the browser to the server, but it seems that somehow the CKEditor widget’s event is firing after the button event fires, which of course means that field’s value is out of sync (not yet present, so my FieldGroup.commit() works, but has the prior value).
This is not always the case, though. Sometimes the editor is updated first. Is there any way for me to control matters so the CKEditor’s updates are processed before the button click is processed?