[TYPO3-english] Extbase + Ajax Form Submit + Validation

Jan Bednarik info at bednarik.org
Fri Mar 27 14:09:45 CET 2015


this is how I do that.

In template:
<f:render partial="FieldError" arguments="{ propertyPath: 
'newRegistration.code' }" />

The partial:
<f:form.validationResults for="{propertyPath}">
     <f:if condition="{validationResults.flattenedErrors}">
         <div class="errorpop"><p>
             <f:for each="{validationResults.flattenedErrors}" as="errors">
                 <f:for each="{errors}" as="error"><f:translate 


Dne 26. 3. 2015 v 0:44 Jan Kornblum napsal(a):
>> But how can i access each properties single validation result? Like i
>> would do in fluid using "<f:form.validationResults>" or similar.
>> I've studied the original errorAction method and var_dumped a lot, but
>> i didn't get it...
> Hmm, i think i've found something. Looks like i have to use...
> $this->arguments->getValidationResults()
> ...and handle handle it's childs (propertyResults etc.). Good practise
> or bad practise?
> Kind regards, Jan

More information about the TYPO3-english mailing list