Issue Bug Closed

#27415ViewHelper Forms with method get and action parameter do not address to right action

René Wagner 06/13/11, 23:53 updated 10/17/16, 23:43

Description

A form like the following is rendered invalid:

<f:form action="list" method="get" id="searchForm" name="searchForm">…</f:form>

The reason is, it is addressing the action as a query string in the form action attribute. This query string gets completely substituted by the form fields inside the form.

Resolution: On get formulars, render the query string as hidden form fields.

Manual workaround:

<f:form action="list" method="get" id="searchForm" name="searchForm"><br> <f:form name="action" value="list"></f:form><br> …<br></f:form>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.