ItEr38S05ValidacionEProbasFuncionaisItEr37S06: creating the binder is only necessary for root.
This causes a speedup
This commit is contained in:
parent
b3ec5e1c54
commit
26a1846e24
1 changed files with 0 additions and 12 deletions
|
|
@ -21,9 +21,7 @@
|
|||
package org.navalplanner.web.common;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
|
|
@ -75,17 +73,7 @@ public class Util {
|
|||
return (DataBinder) component.getVariable("binder", false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void createBindingsFor(org.zkoss.zk.ui.Component result) {
|
||||
List<org.zkoss.zk.ui.Component> children = new ArrayList<org.zkoss.zk.ui.Component>(
|
||||
result.getChildren());
|
||||
for (org.zkoss.zk.ui.Component child : children) {
|
||||
createBindingsFor(child);
|
||||
}
|
||||
setBinderFor(result);
|
||||
}
|
||||
|
||||
private static void setBinderFor(org.zkoss.zk.ui.Component result) {
|
||||
AnnotateDataBinder binder = new AnnotateDataBinder(result, true);
|
||||
result.setVariable("binder", binder, true);
|
||||
binder.loadAll();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue