How would I go about using the new EXTJS 4.0 model with remote business rules?
For example let's say I am registering a user and we need to see if the user name / user id is not a duplicate. Client side validation in the model won't work in this case, we have to go to the web server.
I was looking through the API docs, maybe I missed something? What I want to see is if that user name / user id is invalid to go to the server and find that out, then flag the field with the red validation halo, like client side validation errors.
I know I can submit the whole model to the web server and then let my server throw an error of some nature, and then maybe have a pop-up alerting the user. But I think as a user there should be no UI difference between a client and server side client validation error.
Does anyone have a code snippet to share on how to go about this?