[TYPO3-mvc] Default Values in Forms

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Oct 19 00:16:16 CEST 2010


Hey,

...
> Now here comes the tricky part. When the user comes back, the form
> should be restated to the values it had before the user called the
> detail page. But that doesn't work! :-/
>
> Of course the form-object is not in the request anymore. So what can I
> do? I tried some things but nothing worked for me. What I have tried:
>
> Note: "formObject" is just a transient domain model object. It's not
> persistent in any way because the form is basically a search form.
>
>
> 1. Store form object in session and reassign it on load.
>
> $this->view->assign('formObject', $formObject);
>
> <form object={formObject}>....
>
>
> This had no effect at all.

That's what I'd have done and it should work AFAIK. Have you debugged 
your formObject after fetching it from the session again?

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list