[Flow] Remove does not remove

Bastian Waidelich bastian at typo3.org
Sun Nov 3 11:58:25 CET 2013


Axel Wüstemann wrote:

Hi Axel,

> Update of course is a post request,while delete isn't.

At the risk of explaining this even though you got it already:

All links in an HTML document (<a href="..." />) trigger a GET request, 
while HTML forms can chose to trigger GET or POST requests (via the 
method attribute).

The *updateAction()* in your case is called with POST because you use a 
<f:form /> (which triggers a POST request by default).

The *deleteAction()* you triggered with a link = GET request.

But that's *not* how it's supposed to be!

The deleteAction() is clearly an *unsafe* operation. That means, it 
changes your data. So you should replace

<f:link.action action="delete" ... />

by

<f:form action="delete" ... />

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the Flow mailing list