[TYPO3-mvc] Tx_Extbase_MVC_Exception_InfiniteLoop - again
Jochen Rau
jochen.rau at typoplanet.de
Wed May 5 18:04:32 CEST 2010
Hi Thilo.
On 05.05.10 17:54, Thilo Schneider wrote:
> Hey all,
>
> After hours of research I still do not manage to get rid of on Infinite
> Loop Exception. Probably I'm just plain stupid, but that is for you to
> decide ;)
>
> I have got the following create Action:
> /**
> * create action
> *
> * @param Tx_Gemeindenachrichten_Domain_Model_Termin $newTermin
> * @param string $vonhour
> * @param string $vonminute
> * @param string $bishour
> * @param string $bisminute
> * @param string $datum
> * @return string
> * @dontvalidate
> */
> public function createAction(Tx_Gemeindenachrichten_Domain_Model_Termin
> $newTermin = NULL, $vonhour, $vonminute, $bishour, $bisminute, $datum)
>
> The action is called by the following form:
> <f:form method="post" action="create" controller="Termin"
> name="newTermin" object="{newTermin}">
> <f:form.hidden name="datum"
> value="<f:format.date>{tag.datum}</f:format.date>"/>
> <f:form.textbox name="vonhour" class="edit"/>
> <f:form.textbox name="vonminute" class="edit"/>
> <f:form.textbox property="titel" id="titel" class="edit"/>
> <f:form.submit name="submitbutton" value="Ok"/>
> <f:form.textbox name="bishour" class="edit"/>:
> <f:form.textbox name="bisminute" class="edit"/>
> <f:form.textarea property="beschreibung" id="content"/>
> </f:form>
>
> I have read quite a lot that the exception I get is a validation error -
> but the @dontvalidate does not solve the problem.
Did you also put a @dontvalidate at the Action that renders the form?
Otherwise the following happens:
1) render form
2) send (invalid) data
3) Extbase: "Ha! Invalid data! Gotcha! Back to the previous Action
"render form"
4) goto 3)
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list