[TYPO3-mvc] extbase Validation / Messaging

Lucas Thurston lucas at castironcoding.com
Sat Mar 6 04:50:39 CET 2010


Thanks for the quick answers, Steffen. The "several submissions to get 
all errors" issue I found a patch for.

I wrote a super simple view helper that allows mapping of value from 
renderChildren() though an array passed as an argument. It's a quick 
solution, that let's me map "lastName" to "Last Name," etc.

I'll take a look at your view helper and see if I can use it. Thanks again!

best,
Lucas

Steffen Ritter wrote:
> Lucas Thurston schrieb:
> Hi Lucas
> first thing:
> Please use current trunk versions of extbase and fluid.
> 
> Things like several submissions to get all errors are fixed there 
> already. Also some fluid-ViewHelper-Bugs.
> 
> The "error-viewhelper" which is provided is indeed not very flexible. I 
> did my own one[1] in my extbasetools-extension which allows to do 
> "per-Field" Validation and furthermore: multilevel validation (if you 
> have an object as property of an object you can validate the field 
> within this one seperetaly).
> 
> About translation or modifiyng the messages: there's no chance atm, you 
> just have to deal with your own viewhelpers. On thing would be: build a 
> viewhelper which needs the property, asks the tca for the label and 
> returns this one.
> 
> I hope I could help you a bit out.
> 
> regards
> 
> Steffen
> 
> [1] 
> http://dev.rs-websystems.de/svn/rsextbasetools/trunk/Classes/ViewHelpers/FormPropertyErrorViewHelper.php 
> 


More information about the TYPO3-project-typo3v4mvc mailing list