throw new IOException(ex); boolean isIE = AgentUtils.isIE(context); String sourceParam = player.getSourceParam();
if (AgentUtils.isLessThanIE(context, 9)) { format = "png";
private void encodeScript(FacesContext context, Editor editor) throws IOException { String clientId = editor.getClientId(context); WidgetBuilder wb = getWidgetBuilder(context); wb.init("Editor", editor.resolveWidgetVar(), clientId) .attr("disabled", editor.isDisabled(), false) .attr("invalid", editor.isValid(), true) .attr("controls", editor.getControls(), null) .attr("width", editor.getWidth(), Integer.MIN_VALUE) .attr("height", editor.getHeight(), Integer.MIN_VALUE) .attr("maxlength", editor.getMaxlength(), Integer.MAX_VALUE) .callback("change", "function(e)", editor.getOnchange()); if (AgentUtils.isIE(context)) { Resource resource = context.getApplication().getResourceHandler().createResource("editor/editor-ie.css", "primefaces"); wb.attr("docCSSFile", resource.getRequestPath()); } if (editor.getMaxlength() != Integer.MAX_VALUE) { LOGGER.info("Maxlength option is deprecated and will be removed in a future version."); } wb.finish(); }
if (AgentUtils.isLessThanIE(context, 9)) { format = "png";
throw new IOException(ex); boolean isIE = AgentUtils.isIE(context); String sourceParam = player.getSourceParam();
private void encodeScript(FacesContext context, Editor editor) throws IOException { String clientId = editor.getClientId(context); WidgetBuilder wb = getWidgetBuilder(context); wb.initWithDomReady("Editor", editor.resolveWidgetVar(), clientId) .attr("disabled", editor.isDisabled(), false) .attr("invalid", editor.isValid(), true) .attr("controls", editor.getControls(), null) .attr("width", editor.getWidth(), Integer.MIN_VALUE) .attr("height", editor.getHeight(), Integer.MIN_VALUE) .attr("maxlength", editor.getMaxlength(), Integer.MAX_VALUE) .callback("change", "function(e)", editor.getOnchange()); if (AgentUtils.isIE(context)) { Resource resource = context.getApplication().getResourceHandler().createResource("editor/editor-ie.css", "primefaces"); wb.attr("docCSSFile", resource.getRequestPath()); } if (editor.getMaxlength() != Integer.MAX_VALUE) { logger.info("Maxlength option is deprecated and will be removed in a future version."); } wb.finish(); }