ItEr29S08CUCreacionProxectoPlanificacionItEr28S09: Registering scripts for Resource load panel.

They neeed to be loaded when loading the page for first time, because resource load is loaded by demand.
This commit is contained in:
Óscar González Fernández 2009-10-05 19:52:46 +02:00
parent 9d67f424b7
commit 3592a15fd5

View file

@ -33,6 +33,9 @@ import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.zkoss.ganttz.Planner;
import org.zkoss.ganttz.adapters.PlannerConfiguration;
import org.zkoss.ganttz.resourceload.ScriptsRequiredByResourceLoadPanel;
import org.zkoss.ganttz.util.OnZKDesktopRegistry;
import org.zkoss.ganttz.util.script.IScriptsRegister;
/**
* @author Óscar González Fernández <ogonzalez@igalia.com>
@ -75,6 +78,12 @@ public class OrderPlanningController implements
private CalendarAllocationController calendarAllocationController;
public OrderPlanningController() {
getScriptsRegister().register(ScriptsRequiredByResourceLoadPanel.class);
}
private IScriptsRegister getScriptsRegister() {
return OnZKDesktopRegistry.getLocatorFor(IScriptsRegister.class)
.retrieve();
}
@Override