[Flow] Validation > Exception instead of going back to newAction

Stephen Bungert stephenbungert at yahoo.de
Fri Dec 6 11:03:56 CET 2013


> My object hast a property date. In the form I need to split the date into 
> __date and __time.

Maybe you can use javascript to combine the values from your date and time 
fields into one datetime value that your model needs? Then it would have the 
property and it could be validated.

> The MVC base validate will not act, because ther is nor date property to 
> validate. So it comes to the persistence valitation wich throws an 
> exeption.

Have you tried validating the whole object instead of just the properties? 
This is an annotation on the controller action not the model. maybe you 
could then use your buildDateTime method to make sure your model validates. 




More information about the Flow mailing list