protected String getSubmitFunction(FacesContext facesContext, UIComponent component) { if (!isAjaxMode(component)) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(facesContext, component); AjaxOptions options = ajaxFunction.getOptions(); options.set("beforedomupdate", BEFORE_UPDATE_HANDLER); options.set("complete", AFTER_UPDATE_HANDLER); options.setClientParameters(PARAMS); return ajaxFunction.toScript(); }
protected String getSubmitFunction(FacesContext facesContext, UIComponent component) { if (!isAjaxMode(component)) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(facesContext, component); AjaxOptions options = ajaxFunction.getOptions(); options.set("beforedomupdate", BEFORE_UPDATE_HANDLER); options.set("complete", AFTER_UPDATE_HANDLER); options.setClientParameters(PARAMS); return ajaxFunction.toScript(); }
protected String getSubmitFunction(FacesContext facesContext, UIComponent component) { if (!isAjaxMode(component)) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(facesContext, component); AjaxOptions options = ajaxFunction.getOptions(); options.set("beforedomupdate", BEFORE_UPDATE_HANDLER); options.set("complete", AFTER_UPDATE_HANDLER); options.setClientParameters(PARAMS); return ajaxFunction.toScript(); }
protected String getAjaxSubmitFunction(FacesContext context, UIComponent component) { AbstractTree tree = (AbstractTree) component; if (getToggleTypeOrDefault(tree) != SwitchType.ajax && getSelectionTypeOrDefault(tree) != SwitchType.ajax) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(context, component); ajaxFunction.setSource(SOURCE_JS_REF); AjaxOptions options = ajaxFunction.getOptions(); options.set("complete", COMPLETE_JS_REF); options.setClientParameters(PARAMS_JS_REF); return ajaxFunction.toScript(); }
protected String getAjaxSubmitFunction(FacesContext context, UIComponent component) { AbstractTree tree = (AbstractTree) component; if (getToggleTypeOrDefault(tree) != SwitchType.ajax && getSelectionTypeOrDefault(tree) != SwitchType.ajax) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(context, component); ajaxFunction.setSource(SOURCE_JS_REF); AjaxOptions options = ajaxFunction.getOptions(); options.set("complete", COMPLETE_JS_REF); options.setClientParameters(PARAMS_JS_REF); return ajaxFunction.toScript(); }
protected String getAjaxSubmitFunction(FacesContext context, UIComponent component) { AbstractTree tree = (AbstractTree) component; if (getToggleTypeOrDefault(tree) != SwitchType.ajax && getSelectionTypeOrDefault(tree) != SwitchType.ajax) { return null; } AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(context, component); ajaxFunction.setSource(SOURCE_JS_REF); AjaxOptions options = ajaxFunction.getOptions(); options.set("complete", COMPLETE_JS_REF); options.setClientParameters(PARAMS_JS_REF); return ajaxFunction.toScript(); }
encodeSelectionInput(writer, context, component); AjaxFunction ajaxFunction = buildAjaxFunction(context, component); ajaxFunction.getOptions().setClientParameters(CLIENT_PARAMS);
encodeSelectionInput(writer, context, component); AjaxFunction ajaxFunction = buildAjaxFunction(context, component); ajaxFunction.getOptions().setClientParameters(CLIENT_PARAMS);
encodeSelectionInput(writer, context, component); AjaxFunction ajaxFunction = buildAjaxFunction(context, component); ajaxFunction.getOptions().setClientParameters(CLIENT_PARAMS);