Hi Geeks
We are working on SmartGWT 2.2, and Struts2.
I have created a sample form(DynamicForm) which asks to upload file and mapped action class for processing file upload.
I have setup form.setCanSubmit(true);
My call is succefully gets transferred to struts action class and file is getting uploaded also.
struts.xml
------
<action name="FileUploadAction" class="FileUploadAction" >
<result name="success" type="redirect">success</result>
</action>
but, the problem is that control is not getting back to...
form.submit(new DSCallback(){
@Override
public void execute(DSResponse response, Object rawData,
DSRequest request) {
System.out.println("Response: " + response.getHttpResponseCode());
SC.say("back");
System.out.println("BACK...........");
}
});
But it is not coming back in execute....
I read in Smartgwt, Dynamic Form API that,
if this.canSubmit is true, callback is ignored..
So, what is an alternate solution.....
We are working on SmartGWT 2.2, and Struts2.
I have created a sample form(DynamicForm) which asks to upload file and mapped action class for processing file upload.
I have setup form.setCanSubmit(true);
My call is succefully gets transferred to struts action class and file is getting uploaded also.
struts.xml
------
<action name="FileUploadAction" class="FileUploadAction" >
<result name="success" type="redirect">success</result>
</action>
but, the problem is that control is not getting back to...
form.submit(new DSCallback(){
@Override
public void execute(DSResponse response, Object rawData,
DSRequest request) {
System.out.println("Response: " + response.getHttpResponseCode());
SC.say("back");
System.out.println("BACK...........");
}
});
But it is not coming back in execute....
I read in Smartgwt, Dynamic Form API that,
if this.canSubmit is true, callback is ignored..
So, what is an alternate solution.....
Comment