webClient.getAjaxController().processSynchron(page, webRequest, false); if (webClient.getJavaScriptEngine().isScriptRunning())
final WebWindow ww = w.getWebWindow(); final WebClient client = ww.getWebClient(); final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) ww.getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, webRequest_, async_);
final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) w.getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, webRequest_, async_);
final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) w.getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, webRequest_, async_);
final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) getWindow().getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, requestSettings_, async_);
/** * Sends the specified content to the server in an HTTP request and receives the response. * @param content the body of the message being sent with the request */ public void jsxFunction_send(final Object content) { prepareRequest(content); final WebClient client = getWindow().getWebWindow().getWebClient(); final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) getWindow().getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, requestSettings_, async_); if (synchron) { doSend(Context.getCurrentContext()); } else { // run this as a post-action final Object startingScope = getWindow(); client.getJavaScriptEngine().addPostponedAction(new PostponedAction() { public void execute() throws Exception { client.getJavaScriptEngine().getContextFactory().call(new ContextAction() { public Object run(final Context cx) { cx.putThreadLocal(JavaScriptEngine.KEY_STARTING_SCOPE, startingScope); doSend(cx); return null; } }); } }); } }
/** * Sends the specified content to the server in an HTTP request and receives the response. * @param content the body of the message being sent with the request */ public void jsxFunction_send(final Object content) { prepareRequest(content); final WebClient client = getWindow().getWebWindow().getWebClient(); final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) getWindow().getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, requestSettings_, async_); if (synchron) { doSend(Context.getCurrentContext()); } else { // run this as a post-action final Object startingScope = getWindow(); client.getJavaScriptEngine().addPostponedAction(new PostponedAction() { public void execute() throws Exception { client.getJavaScriptEngine().getContextFactory().call(new ContextAction() { public Object run(final Context cx) { cx.putThreadLocal(JavaScriptEngine.KEY_STARTING_SCOPE, startingScope); doSend(cx); return null; } }); } }); } }
final AjaxController ajaxController = client.getAjaxController(); final HtmlPage page = (HtmlPage) w.getWebWindow().getEnclosedPage(); final boolean synchron = ajaxController.processSynchron(page, webRequest_, async_);