use of com.servoy.j2db.scripting.IScriptSupport in project servoy-client by Servoy.
the class WebClient method onBeginRequest.
public void onBeginRequest(WebClientSession webClientSession) {
Solution solution = getSolution();
if (solution != null) {
synchronized (onBeginRequestLock) {
long solutionLastModifiedTime = webClientSession.getSolutionLastModifiedTime(solution);
if (solutionLastModifiedTime != -1 && solutionLastModifiedTime != solution.getLastModifiedTime()) {
if (isClosing() || isShutDown()) {
if (((WebRequest) RequestCycle.get().getRequest()).isAjax())
throw new AbortException();
else
throw new RestartResponseException(Application.get().getHomePage());
}
refreshI18NMessages(true);
((IScriptSupport) getScriptEngine()).reload();
((WebFormManager) getFormManager()).reload();
MainPage page = (MainPage) ((WebFormManager) getFormManager()).getMainContainer(null);
throw new RestartResponseException(page);
}
executeEvents();
}
}
}
Aggregations