[TYPO3-mvc] Simple ajax widget to update an object property
Ulrich Fischer
ulrich-fischer at gmx.net
Tue Nov 8 07:22:21 CET 2011
Hi,
I am trying to use a Fluid widget (Extbase 1.3.1-devel and Fluid 1.3
shipped with TYPO3 4.5.7) to update an object property via AJAX.
I have built a simple form in my template with this form tag:
<f:form class="company-date-form" method="post"
action="{f:widget.uri(action:'mywidget', ajax: 1)}">
this causes the error:
Call to undefined method Tx_Extbase_MVC_Web_Request::getWidgetContext()
(typo3_src-4.5.7/typo3/sysext/fluid/Classes/ViewHelpers/Widget/UriViewHelper.php
on line 77)
UriViewHelper.php on line 77:
$arguments['fluid-widget-id'] =
$this->controllerContext->getRequest()->getWidgetContext()->getAjaxWidgetIdentifier();
How can I tell the UriViewHelper the controller context, what widget and what
controllerAction should be called?
I have searched quite a lot, but I did not found an example,
that could be used as an HowTo. So thanks for any advice.
With best regards,
Ulrich
More information about the TYPO3-project-typo3v4mvc
mailing list