[Fluid] Ajax Widgets can't be used from within cachabele actions
When using a Fluid Ajax Widget on a cachable controller action, then fluid-widget-id is cached in template output. Since fluid-widget-id is bound to an individual fe_user, the fluid-widget-id won't get updated upon every request.
Sometimes you want be able to fetch cached data via Ajax.
Check if the stored action in Widget Context is cacheable. If yes, then save the context with AjaxWidgetContextHolder to a cache instead of the session.
#8 Updated by Helmut Hummel over 5 years ago
Could be an option to add stateless support:
#11 Updated by Benjamin Franzke over 5 years ago
The accepted commit 1629aea9afd7c11198763b0ec69d634cf7a32b63 is not yet in master.
Whats holding this up?
Ajax Widgets are quite useless without this.
Therefore: Do you think this could be cherry-picked to 6.0/6.1 TYPO3 versions, as this really fixes a major bug?
#12 Updated by Stefan Dürrenberger over 5 years ago
I tested the patch on 6.2.2 and it seems to work fine except for one detail. I get a 404 if the AJAX request doesn't go to index.php. In the patch, that is addressed for UriViewHelper, but not for LinkViewHelper.
I'm not sure if there's a reason for it, but otherwise line 111 in typo3/sysext/fluid/Classes/ViewHelpers/Widget/LinkViewHelper.php should be changed to:
return '/index.php?' . http_build_query($arguments, NULL, '&');