Using smartgwtpower-3.1p.2013-03-18, Firefox 19.0.2, Windows 7 64b.
Please see attached the modified FormValidationSample.java example.
I need to use a datasource bound form with several form items that has also a canvas item that contains as its canvas a nested form with two form items. All items are defined in a datasource.
This construction is meant to display the canvas item as one field with two subfields in one column (or 2 columns if the title is counted).
name1: [_________]
name2: [_________]
name3: [___] [____]
name4: [_________]
1) Is the usage of CanvasItem/nested form the right approach for such use case?
2) While using this approach I encountered a problem with the values manager validation.
In case a validation error exists for the one of the nested fields (name3_1 or name3_2) I need to display the error icon/message for the name3 field.
For that I overrode the showErrors of the nested DynamicForm. That is called when client validation is executed, but not when the server validation returns errors.
2.1) On client validation, although the showErrors is executed, still the error set manually is not shown on the canvas item. Do you see why? I succeeded in my project to see that but not in this shwocase.
2.2) Why the showErrors is not executed when the server validation returns errors?
Regards,
Mihnea
Please see attached the modified FormValidationSample.java example.
I need to use a datasource bound form with several form items that has also a canvas item that contains as its canvas a nested form with two form items. All items are defined in a datasource.
This construction is meant to display the canvas item as one field with two subfields in one column (or 2 columns if the title is counted).
name1: [_________]
name2: [_________]
name3: [___] [____]
name4: [_________]
1) Is the usage of CanvasItem/nested form the right approach for such use case?
2) While using this approach I encountered a problem with the values manager validation.
In case a validation error exists for the one of the nested fields (name3_1 or name3_2) I need to display the error icon/message for the name3 field.
For that I overrode the showErrors of the nested DynamicForm. That is called when client validation is executed, but not when the server validation returns errors.
2.1) On client validation, although the showErrors is executed, still the error set manually is not shown on the canvas item. Do you see why? I succeeded in my project to see that but not in this shwocase.
2.2) Why the showErrors is not executed when the server validation returns errors?
Regards,
Mihnea
Comment