if (!(repeater instanceof EnhancedRepeater)) {
super.doLoad(frmModel, jxpc);
return;
}
EnhancedRepeater rep = (EnhancedRepeater) repeater;
RepeaterAdapter adapter;
if (this.adapterClass != null) {
try {
adapter = (RepeaterAdapter) Thread.currentThread().getContextClassLoader().loadClass(this.adapterClass).newInstance();
} catch (Exception e) {
throw new CascadingRuntimeException("Cannot instantiate adapter class for advanced repeater binding", e);
}
} else {
adapter = new RepeaterJXPathAdapter();
}
RepeaterJXPathCollection collection = new RepeaterJXPathCollection();
//Pointer ptr = jxpc.getPointer(super.getRepeaterPath());
//JXPathContext repeaterContext = jxpc.getRelativeContext(ptr);
collection.init(jxpc, super.getRowPath(), adapter);
adapter.setBinding(this);
adapter.setJXCollection(collection);
rep.setCollection(collection);
rep.doPageLoad();
}