[TYPO3-mvc] Feed Form with latest values after validation has failed.

Henjo Hoeksma me at henjohoeksma.nl
Wed Feb 22 23:43:05 CET 2012


Hi Martin,

I don't know of any other way but to use javascript validation to
accomplish this.

Maybe someone knows of a solution?

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Wed, Feb 22, 2012 at 15:41, Martin Ernst <ernst at alto.de> wrote:

> Hello,
>
> I wrote some own validators that are used to validate whole objects on
> different update controllers. They work as expected: if validation fails,
> the user returns to the form and sees validation errors.
>
> But: the form is prefilled with the old values that were stored in the
> object before editing started. So if the user changes for example three
> values, and one of the changes makes validation fail, then ALL changes are
> gone, the original object's values are shown in the form.
>
> This is very annoying, so I need a way to present the latest input values
> in the form after validation has failed.
>
> The form itself is built with fluid viewhelpers. The fields are bound to
> object propertyies.
>
> Any help is very much appreciated. Greetings
> Martin
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list