/** * Fired whenever submit is successful or not. * Displays apropriate alerts due to status no. * * Overide if you want to handle messages on your own, * or if you want to handle bad or good submits. * * @param status status * @param message message to dispaly */ protected void onSubmit(int status, String message, FileDescriptorGxt fdg) { switch (status) { case STATUS_SUCCESS: MessageBox.info("Submit status", message, null); break; case STATUS_BAD_URL: MessageBox.info("Error during file upload", message, null); break; case STATUS_NOT_VALID: MessageBox.info("Error during file upload", message, null); break; case STATUS_CONTROLLER_ERROR: MessageBox.info("Error during file upload", message, null); break; } }