I've got a text-edit in a window and the text edit fills the entire window. The problem is that after filling in text in the text edit, if you immediately close the window the text-edit won't save it's changes back to the field it is bound to.
It will save changes when you de-focus the text edit then click close, but not if you click close directly after typing in the text edit.
Is there a way to force the text-edit to store it's value when the window's close button is clicked?
Here is an example setup:
<button left="0" top="0" width="100" height="26" label="string">
<action:when event="onClick">
<action:call-widget-method method="win-test.show"/>
</action:when>
</button>
<window left="0" top="0" width="250" height="350" name="win-test" visible="n">
<text-edit left="0" top="0" right="0" bottom="0" field="var.test" multi-line="y" name="te-test"/>
</window>