Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.3.2, 5.3.4
Description
When a zone update occurs, the 'setupRender' is called for each component contained by that zone.
If a script is added to ajaxResponseRenderer within the 'setupRender' method it is never executed on the page.
eg:
public class MyPage
{
void onSomeEvent()
}
public class MyComponent
{
void setupRender()
{
if (request.isXHR())
ajaxResponseRenderer.addCallback(new JavaScriptCallback() { public void run(JavaScriptSupport javascriptSupport) {
javascriptSupport.addScript("alert('here');");}});
}
}