Hi,
We want to combine two forms into one logical form via ValuesManager, one of these two forms includes a UploadItem. Our target is use ordinary HTML submit but not DataBound.
We setup the two forms, including call form.setCanSubmit(true) to indicate that we want to use DataBound, and add these two forms into ValuesManager (using addMember). And we also setup the type as POST/MULTIPART, and using setAction to set the same URL to these two forms.
The problem is when we call valuesManager.submit(), we got the exception:
16:18:35.812:MUP2:WARN:ValuesManager:isc_ValuesManager_3:saveData() called on a non-databound ValuesManager. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
com.smartgwt.client.core.JsObject$SGWT_WARN: 16:18:35.812:MUP2:WARN:ValuesManager:isc_ValuesManager_3:saveData() called on a non-databound ValuesManager. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
We are sure the canSubmit value is true here, so what can we do?
PS: we are using SmartGWT 2.5 + GWT 2.2
We want to combine two forms into one logical form via ValuesManager, one of these two forms includes a UploadItem. Our target is use ordinary HTML submit but not DataBound.
We setup the two forms, including call form.setCanSubmit(true) to indicate that we want to use DataBound, and add these two forms into ValuesManager (using addMember). And we also setup the type as POST/MULTIPART, and using setAction to set the same URL to these two forms.
The problem is when we call valuesManager.submit(), we got the exception:
16:18:35.812:MUP2:WARN:ValuesManager:isc_ValuesManager_3:saveData() called on a non-databound ValuesManager. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
com.smartgwt.client.core.JsObject$SGWT_WARN: 16:18:35.812:MUP2:WARN:ValuesManager:isc_ValuesManager_3:saveData() called on a non-databound ValuesManager. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
We are sure the canSubmit value is true here, so what can we do?
PS: we are using SmartGWT 2.5 + GWT 2.2
Comment