I do client and server validation.

In 4.2 I use Ext.data.Errors, add the errors and then in the form use the method markInvalid. This works great but in 5.0 Ext.data.Errors is deprecated so I search the documentation and it says to use Ext.data.Validation but when you look at form Basic for the method markInvalid http://ift.tt/1n0b73A you say you can use Ext.data.Errors.

In the code you can see how you use Ext.data.ErrorCollection.


So the questions is:

Is the documentation wrong?

Is Ext.data.Errors really deprecated?

How are we supposed to use markInvalid?


I know I can use the object directly, but I prefer Ext classes.


Thanks.