[TYPO3-mvc] Re: Dynamic (non-Fluid) Form-Elements with ExtBase
Gianluca Strafella
gianluca.strafella at webformat.com
Wed Aug 12 08:45:47 CEST 2015
Hi,
Quote: bSchreiber (bschreiber) wrote on Mon, 03 August 2015 13:46
----------------------------------------------------
But try the following:
> 1. Submit the values test=1 and dynamic=2 to "testSubmitAction"
> 2. *without reseting / reloading* Submit the values test=3 and dynamic=4 to "testSubmitValidateAction"
>
> You will notice that "testSubmitAction" will be called (since it's in "__referrer. at action") but the passed argument "$test" contains also the values from the first request (test=1 and dynamic=2) and not what the user just submitted.
>
> So when the new formdata is not passed back, which makes a strange kind of sense, but how to access it?
>
----------------------------------------------------
In your source code, I see that property "invalid" must be "validate NotEmpty" (action testSubmitValidateAction) . I think that you don't pass form validation and your template is rendered with previous posted values.
You can try to pass valid value for hidden field "invalid" or adding annotation @dontvalidate on action method.
Gianluca
--
Gianluca Strafella
Software Developer
WEBFORMAT srl – www.webformat.com
More information about the TYPO3-project-typo3v4mvc
mailing list