[TYPO3-mvc] Re: Validation fails - but not going back to newAction
David Effendi
david.effendi at limeflavour.com
Mon Jun 23 09:26:32 CEST 2014
Hello Philipp,
thanks for your thoughts!
I succeeded in implementing all this. (Don't know how to set this thread as solved)
As the posted code shows, this was supposed to be a registration for a newsletter.
First there was the requirement to create a simple subscription - later the possibility for editing an existing subscription was also needed. So I just extended the extension with an editing form with editAction and updateAction - and then suddenly the validation didn't work anymore.
When I posted this problem I had implemented the whole editing process. Since I could not find the error I just rolled back and - for some reason - surprisingly everything worked fine. Unfortunately I cannot present the solution for the problem I described here - probably there was none ;)
Validating the properties inside the model was no option since there had to be partial validation - I'm aware that partial validation is possible now - but I rather wanted to solve this with action validation.
The new validate annotation looked odd to me too, but it seems to work this way - its out of the new book of Patrick Lobacher "TYPO3 Extbase" (ISBN 978-3-95539-070-9) and it seems to be the new way ;)
All best
David
More information about the TYPO3-project-typo3v4mvc
mailing list