[TYPO3-mvc] Fluid: f:form method GET loosing target action/controller

roberto blanko robertoblanko at gmail.com
Mon Aug 2 14:27:46 CEST 2010


Hello community,

I've got a plugin outputting data for a given date. On top of each page is a
form containing a field where one can change the date. The form is supposed
to be a GET and not a POST form.

My form looks like this:

<f:form id="dateForm" controller="Data" action="show"method="get">
    <f:form.textbox name="date" maxlength="10" size="7" value="{date}" />
</f:form>

(The form is being submitted via JavaScript once the value of date changes.)

The destination controller/action is the same as the page containing the
form: Data/show.

The form works just perfectly in POST mode. Using GET however, fluid looses
the target controller/action. I need to introduce hidden field for the
controllerName and actionName in order to force it to work. This can't be
intentional, can it?

<f:form id="dateForm" controller="Data" action="show"method="get">
    <f:form.hidden name="action" value="show" />
    <f:form.hidden name="controller" value="Data" />

    <f:form.textbox name="date" maxlength="10" size="7" value="{date}" />
</f:form>


More information about the TYPO3-project-typo3v4mvc mailing list