Author: alexsmirnov
Date: 2007-06-29 20:04:34 -0400 (Fri, 29 Jun 2007)
New Revision: 1428
Modified:
branches/refactor1/framework/impl/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java
Log:
restore UIDataAdaptor ajax functions
Modified:
branches/refactor1/framework/impl/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java
===================================================================
---
branches/refactor1/framework/impl/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java 2007-06-30
00:03:04 UTC (rev 1427)
+++
branches/refactor1/framework/impl/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java 2007-06-30
00:04:34 UTC (rev 1428)
@@ -47,6 +47,7 @@
import javax.faces.model.ListDataModel;
import javax.faces.render.Renderer;
+import org.ajax4jsf.framework.renderer.AjaxChildrenRenderer;
import org.ajax4jsf.framework.renderer.AjaxRenderer;
/**
@@ -362,7 +363,7 @@
childrenRenderer.encodeAjaxChildren(context, this, path, ids,
renderedAreas);
}
- /*else {
+ else {
// Use simple ajax children encoding for iterate other keys.
final AjaxRenderer childrenRenderer = getChildrenRenderer();
final String childrenPath = path + getId() + NamingContainer.SEPARATOR_CHAR;
@@ -394,7 +395,7 @@
} else {
iterate(context, ajaxVisitor, null);
}
- }*/
+ }
}
/**
@@ -410,21 +411,21 @@
*
* @return
*/
-// protected AjaxRenderer getChildrenRenderer() {
-// if (_childrenRenderer == null) {
-// _childrenRenderer = new AjaxChildrenRenderer() {
-//
-// protected Class getComponentClass() {
-// return UIDataAdaptor.class;
-// }
-//
-// };
-//
-// }
-//
-// return _childrenRenderer;
-// }
+ protected AjaxRenderer getChildrenRenderer() {
+ if (_childrenRenderer == null) {
+ _childrenRenderer = new AjaxChildrenRenderer() {
+ protected Class getComponentClass() {
+ return UIDataAdaptor.class;
+ }
+
+ };
+
+ }
+
+ return _childrenRenderer;
+ }
+
/**
* @return Set of values for clientId's of this component, for wich was
* invoked "encode" methods.
Show replies by date