Author: vbaranov
Date: 2008-03-06 05:46:09 -0500 (Thu, 06 Mar 2008)
New Revision: 6585
Modified:
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/renderkit/html/SimpleTogglePanelRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-2195
Modified:
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/renderkit/html/SimpleTogglePanelRenderer.java
===================================================================
---
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/renderkit/html/SimpleTogglePanelRenderer.java 2008-03-06
10:30:56 UTC (rev 6584)
+++
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/renderkit/html/SimpleTogglePanelRenderer.java 2008-03-06
10:46:09 UTC (rev 6585)
@@ -119,10 +119,16 @@
panel.setOpened(new Boolean((String) clnId).booleanValue());
}
+ // in case of "ajax" request and "ajax" switch mode of
toggle panel
+ // set the regions to be rendered (reRendered) after operating this
"ajax" request
if (AjaxRendererUtils.isAjaxRequest(context) &&
panel.getSwitchType().equals(UISimpleTogglePanel.AJAX_SWITCH_TYPE)) {
- AjaxRendererUtils.addRegionByName(context,
+ // add toggle panel itself to rendered list of components
+ AjaxRendererUtils.addRegionByName(context,
panel,
panel.getId());
+ // add regions specified in the "reRender" attribute of toggle panel
+ // to rendered list of components
+ AjaxRendererUtils.addRegionsFromComponent(panel, context);
}
}