Project

General

Profile

Actions

Story #100955

open

Fluid form submitted successful... but i see the "old" data.

Added by C. Gogolin 12 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2023-06-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Sprint Focus:

Description

Hello professionals,

I have a question of understanding and maybe this will result in an extension/modification.
In my extension a form is successfully submitted. After that I make a forward to the show action. So I can delegate the validationResults and other control commands (switch to the right tab) to the show action. So far so good. BUT: in the form the content of the "submitted Object" is still displayed.

I use the ViewHelper <f:form> in combination with the object attribute.

In the controller I reset the object after the successful submit:

$this->view->assign('myObject', new MyEntityObject());

When I write the template #{myObject.xyz}# I get ##. <- From this I conclude that everything is empty.

But in the textfield <f:textfield property="xyz"> it says "the old value"?

How do I get <f:form> to display the empty object? Am I doing something wrong? Is there another secret switch? Or is this a bug? Or is there something missing in the doc?

Thanks for reading and for helpful hints.
Clemens

No data to display

Actions

Also available in: Atom PDF