json form validator and values manager validate()

I am attempting to use the sample code from
http://www.smartclient.com/smartgwt/showcase/#form_validation_server_json in a multiple part form with values manager.

If I just validate the 1 dynamic form the json validation works as expected e.g.

if(form.validate()){
    form.saveData();	
}

however if I try to validate the values manager for the group of forms the JSON validation doesn’t seem to be executed. e.g.

if(vm.validate()){
	vm.saveData();	
}

Is there something fundamental I’m missing?

just adding a bit more info.

The values manager wraps 4 dynamic forms each with its own datasource. The last form is the only form that has the JSON form validation. Some further reading of the documentation uncovered the following

"
Like a DynamicForm, a ValuesManager can be databound by setting dataSource. In this case all member forms must also be bound to the same DataSource.
"

I attempted to have all the forms bound to the same datasource however this resulted in all the tabbed forms containing all the fields assoc with the datasource on each tabbed form. So I ended up with 4 tabbed forms with the same fields rather than 4 tabbed forms with each tab displaying it own fields. I hope thats sounds clear.

If you’re splitting a form across multiple tabs while sharing a DataSource, each form needs to have setFields() called with the list of fields that should appear in that form. Otherwise, they will all show all fields from the DataSource - there is no way for them to know how you intended to split the fields.

When I attempt .setFields on the dynamic form I get the following

The method setFields(FormItem…) in the type DynamicForm is not applicable for the arguments (DataSourceEnumField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField)

That would be because the method takes one or more FormItems.

Apologies for the lame questions. I am trawling the showcase code attempting to clarify in my head the relationship between datasourcefields and formitems. Can you point me in the right direction docs or sample code please. Thankyou for your prompt responses

The set of FormItems you specify correspond, by name, to DataSourceFields. The ones you specify inherit DataSourceField settings like “title” and override any properties you specifically set on the FormItem. The items you specify on the DynamicForm are the only ones that appear unless you setUseAllDataSourceFields(true).