Feature #31167

Stateless AJAX Widgets

Added by Bastian Waidelich almost 4 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-10-21
Priority:Could have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:Widgets
Target version:-
Has patch:No

Description

Currently an AJAX Widget stores the WidgetContext in the WidgetContextHolder which again puts it in the current user session.
This should be configurable so that the context can be passed to the target widget action via GET/POST.
Note: This requires that the request handler verifies the HMAC of the widget request!

Associated revisions

Revision 2db35873
Added by Bastian Waidelich over 3 years ago

[FEATURE] (Core): Stateless AJAX Widgets

Currently an AJAX Widget stores the WidgetContext in the
WidgetContextHolder which again puts it in the current user
session.
This change adds a property "stateless" to the
AbstractWidgetViewHelper. If that's TRUE, the widget context
won't be stored in the session anymore. Instead, the
WidgetRequestBuilder then expects the "internal argument"
__widgetContext to be specified (with a valid HMAC appended).

The Widget Link/Uri-Viewhelpers now add the serialized and
HMAC'ed WidgetContext to the generated URI if the new argument
"includeWidgetContext" is set.

Besides this change renames the widgetId argument from
"typo3-fluid-widget-id" to "__widgetId" as discussed.
Note: This would be a breaking change, if you relied on that
specific GET argument (which is however very unlikely)!

Lastly the WidgetRequestBuilder now interprets merged GET + POST
arguments instead of relying on GET only. This makes it possible
to pass the widgetId/Context via POST.

Change-Id: I3d4e06a1823786f23fc7ce5ef0b179d625abccff
Resolves: #31167
Release: 1.1

History

#1 Updated by Mr. Hudson over 3 years ago

Patch set 1 of change I3d4e06a1823786f23fc7ce5ef0b179d625abccff has been pushed to the review server.
It is available at http://review.typo3.org/6611

#2 Updated by Mr. Hudson over 3 years ago

Patch set 2 of change I3d4e06a1823786f23fc7ce5ef0b179d625abccff has been pushed to the review server.
It is available at http://review.typo3.org/6611

#3 Updated by Mr. Hudson over 3 years ago

Patch set 3 of change I3d4e06a1823786f23fc7ce5ef0b179d625abccff has been pushed to the review server.
It is available at http://review.typo3.org/6611

#4 Updated by Bastian Waidelich over 3 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF