From 9a433b428981c1423d35d9ed0e7da904f1236279 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Mar 2016 12:40:52 +0100 Subject: TActiveCheckBoxList cannot be updated during callback, if it was initially empty, since the surrounding span with the control id is not even rendered if there are no items. To allow this, always force the span to be rendered for TActiveCheckBoxList. --- framework/Web/UI/ActiveControls/TActiveCheckBoxList.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'framework/Web/UI/ActiveControls') diff --git a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php index dfcb72c6..9d9c9099 100644 --- a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php +++ b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php @@ -62,6 +62,17 @@ class TActiveCheckBoxList extends TCheckBoxList implements IActiveControl, ICall return $this->getAdapter()->getBaseActiveControl()->getClientSide(); } + /** + * Since at least a control with id is needed to update the content during callback, + * always force the surrounding span to be rendered, so initially empty lists can be + * updated later. + *@return boolean always true + */ + protected function getSpanNeeded () + { + return true; + } + /** * Override parent implementation, no javascript is rendered here instead * the javascript required for active control is registered in {@link addAttributesToRender}. -- cgit v1.2.3