f.add(submit);
f.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler() {
@Override
public void onSubmitComplete(SubmitCompleteEvent event) {
eventBus.fireEvent( new CloseWaitModelDialogEvent() );
if(event.getResults().equals("200"))
{
// 200 is OK
uploadForm.reset();