Author: konstantin.mishin
Date: 2008-09-17 11:29:41 -0400 (Wed, 17 Sep 2008)
New Revision: 10472
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
RF-4477
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-09-17
14:56:10 UTC (rev 10471)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-09-17
15:29:41 UTC (rev 10472)
@@ -597,12 +597,13 @@
public void encodeEnd(FacesContext context, UIComponent component)
throws IOException {
super.encodeEnd(context, component);
-
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
- Set<String> ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
- String clientId = component.getClientId(context);
- if(ajaxRenderedAreas.contains(clientId+ ":tb")) {
- ajaxRenderedAreas.remove(clientId);
+ if (component instanceof UIDataTable) {
+ AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
+ Set<String> ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
+ String clientId = ((UIDataTable) component).getBaseClientId(context);
+ if(ajaxRenderedAreas.contains(clientId+ ":tb")) {
+ ajaxRenderedAreas.remove(clientId);
+ }
}
}