Friday, October 10, 2008

GWT: Auto-saving a TextArea

    You can use this inner class:

 private class TextAreaAutoSave extends TextArea
 {
   public TextAreaAutoSave()
   {
    super();
   }

   @Override
   protected void onDetach()
   {
      if (saveButton != null)
     saveButton.click();
   }
 }