Hello,
I'm new to SmartGWT. I'm using SmartGWT(LGPL) 2.2 with FF 3.6.
I've done the file upload module in my GWT-Ext project successfully. In that I was using a FormPanel & a FileUpload control. After the file is uploaded I handled the event like this:
I used Struts to send request to my Action Class & redirect it back to the listener like this:
I'm using DynamicForm and UploadItem of SmartGWT.
can anyone tell me if there is a similar functionality like formPanel.addFormListener() in DynamicForm of SmartGWT?
I'm new to SmartGWT. I'm using SmartGWT(LGPL) 2.2 with FF 3.6.
I've done the file upload module in my GWT-Ext project successfully. In that I was using a FormPanel & a FileUpload control. After the file is uploaded I handled the event like this:
Code:
formPanel.addFormListener(new FormListenerAdapter(){ @Override public void onActionComplete(Form form, int httpStatus, String responseText) { MessageBox.alert("Succesful"); } @Override public void onActionFailed(Form form, int httpStatus, String responseText) { MessageBox.alert("Failed"); } });
Code:
<package name="example2" extends="struts-default"> <action name="FileUploadAction" class="com.nextenders.server.actions.FileUploadAction"> <result name="success" type="redirect">success</result> <result name="error">Fail</result> <result name="none">None</result> <result name="Empty">Empty</result> <result name="SIZE">SIZE</result> </action> </package>
can anyone tell me if there is a similar functionality like formPanel.addFormListener() in DynamicForm of SmartGWT?
Comment