[FLOW3-general] Issues with Validation and Property Mapping

Bastian Waidelich bastian at typo3.org
Tue Apr 17 12:24:34 CEST 2012


Adrian Föder wrote:

Hi Adrian,

> I attached the NotEmpty- and the NumberValidator to the property and
> both didn't work. They seemed to not kick in.

The problem lies in the ObjectConverters that implicitly casted the 
input to the correct target type.
I just merged a change [1] that should fix the issue for you.

> - what should I do to achieve what I want? I indeed want to test the
> value kind-of on a string basis... As said: I have to be very
> pessimistic and decline the input if there's *anything* wrong there...

If you need to enforce even more strict rules you could try using the 
RegularExpressionValidator.

Best,
Bastian

[1] https://review.typo3.org/#/c/10071/


More information about the FLOW3-general mailing list