dolittlestudios/Bifrost — pull request #27 by mariusGundersen (2012-03-21 11:53:01+00:00)
Title: Server validation results on the client

validation messages from the server are now applied to the knockout viewmodel. For example, a rating submitted with value 9000 when the allowed values are 1,2,3,4 or 5 will return a commandResult with a validationResult. The error messages in the validationResult are applied to the correct fields in the viewModel and shown in the view if the validationMessageFor knockoutBinding is used.

TODO: show general error messages for the command. Maybe use the Validator on the Command? and a validationMessagesFor custombinding which will foreach the validationResults for the command and show them in a list in the view?