[TYPO3-mvc] fun with validation.
Toke Herkild
th at t3cms.dk
Fri Feb 8 10:01:18 CET 2013
Hi all,
I've got some fun with validators:
In the model I've the following:
/**
* position
*
* @var string
* @validate StringLength(minimum=1, maximum=254)
*/
protected $position;
In the controller:
/**
* create...
* ..
*/
And new :
/**
* create...
* ..
*@dontvalidate tModel
*/
Now, this should be fine... but, I'm submitting the form using ajax, and
if I add validation, and only clearcache, it works like a charm. But if
I reload page and clear browser cache, then I get the "101 iterations"
error.
I've been through 10 pages of google search results for extbase and
validate/dontvalidate, and I'm still no closer to understanding why it
somewhat works and then again it really doesn't.
Anyone got a good idea as to where to look ?
Regards,
Toke
More information about the TYPO3-project-typo3v4mvc
mailing list