Feature #31765

Forward to Action of widgetController

Added by Carsten Bleicker over 3 years ago. Updated about 1 year ago.

Status:Resolved Start date:2011-11-11
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:Widgets
Target version:-
Has patch:No

Description

widget controller has 2 actions:
1. indexAction
2. createAction

after createAction i want to forwad to the indexAction again.
but doesnt work. getting a white page withoud any result by using $this->forward('index).
any ideas to do something like a forward inside of the widget controller?

thanks
carsten

Associated revisions

Revision 78aa1b63
Added by Bastian Waidelich almost 2 years ago

[FEATURE] Support for redirects within widgets

Redirects and forwards did not work from within widget controllers
because there was no internal dispatch-loop.

This change implements support for redirects and forwards.
Besides this adds a controller check that throws an
exception when trying to redirect to a different controller
than the one associated with the widget ViewHelper.

Change-Id: I0c636ffd6a4152621663ca8e993be85f6b4fc2ad
Resolves: #31765
Releases: master

History

#1 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.1 to 1.0.2

#2 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.2 to 1.0.3

#3 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.3 to 1.0.4

#4 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.4 to 1.0.5

#5 Updated by CPS-IT GmbH over 3 years ago

This does work for me in the current master. Tried it in the indexAction of a widget controller as well as in an Ajax Action called by an ajax controller.

#6 Updated by CPS-IT GmbH over 3 years ago

Sorry, just read that you try to reforward to your index action. So there is a loop calling index and create actions alternately. This can't work. I think you reach dispatchLoopCount in TYPO3\FLOW3\Mvc\Dispatcher which executes an Exception.

#7 Updated by Karsten Dambekalns about 3 years ago

  • Target version changed from 1.0.5 to 1.1 RC1

#8 Updated by Karsten Dambekalns about 3 years ago

  • Status changed from New to Closed
  • Assigned To set to Karsten Dambekalns

There has been no feedback for a while here. If this is still an issue, feel free to reopen. Thanks for your understanding.

#9 Updated by Bastian Waidelich almost 2 years ago

  • Status changed from Closed to Accepted
  • Assigned To changed from Karsten Dambekalns to Bastian Waidelich
  • Target version deleted (1.1 RC1)

This problem still exists apparently: http://forum.typo3.org/index.php/t/199461/

#10 Updated by Gerrit Code Review almost 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24152

#11 Updated by Bastian Waidelich about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF