[TYPO3-mvc] [Solved] Extbase validation got double errors messages

Rayuth You rayuth at web-essentials.asia
Thu Oct 13 13:48:37 CEST 2011


On 10/11/2011 03:03 PM, Rayuth You wrote:
> Hi list
>
> In controller I have newAction (@dontvalidate) and creatAction
> (@validate). And in view New.html I put the render form error.
> When I submit the form, I got double errors with the same messages.
>
> What I did wrong? Any solution?
>
> Thanks,
> Yuth

Add @dontvalidation before @validate It works well:

@dontvalidate $newObject
@validate $newObject Tx_Ext_Domain_Validator_ObjectValidator

I am not sure why but maybe I write my own validation and typo3 having 
it own. So if I just only put:

@validate $newObject Tx_Ext_Domain_Validator_ObjectValidator

It'll do it own and after that mines. If I don't misunderstand, maybe that.

Cheers,


More information about the TYPO3-project-typo3v4mvc mailing list