Project

General

Profile

Actions

Feature #65717

closed

Extbase/Fluid: Add possibility to set an "error action" for forms and links in MvC

Added by Jost Baron about 9 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-03-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Currently, if an action is called and the validation of a parameter fails,
the errorAction of that controller is called. This action redirects to
the action, controller and plugin that rendered the form which was
submitted.

This is often correct, but not always: For example, if a form is embedded
when rendering an unrelated view. If it is then submitted by AJAX and a
validation error occurs, the request should not be redirected to the
unrelated action which triggered the rendering of the form, but to a specific
controller/action combination.

This could be done by adding parameters errorAction, errorController,
errorVendor, errorExtension and errorArguments to action URIs
(f:uri.action, f:link.action, f:form).

These parameters have the same semantics that the corresponding
_referrer values have. If one of them is missing, the value from the
_referrer is used as a default.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #80341: wrong hiiden parts in the f:form -ViewheleprClosed2017-03-18

Actions
Actions #1

Updated by Stefan Froemken 10 months ago

  • Status changed from New to Closed

Hello,

thank you for reporting that issue. I have just read the annotation of the errorAction():

"This is suitable for most actions dealing with form input."

You are absolutely right when you say "This is often correct, but not always". For such cases you should override the errorAction() within you own ActionController. There you can access the request object directly and decide on your own what should happen on error.

I will close the ticket now. If you feel this is the wrong decision, let me know, and I will re-open it.

Stefan

Actions

Also available in: Atom PDF