Renders using {@link JsonRenderer} with {"sc": false}.

@return this context
181286
public RequestContext renderJSON() {
        final JsonRenderer jsonRenderer = new JsonRenderer();
        final JSONObject ret = new JSONObject().put(Keys.STATUS_CODE, false);
        jsonRenderer.setJSONObject(ret);

        this.renderer = jsonRenderer;

        return this;
    }
1148169
@Override
	protected BundleRenderer createRenderer(FacesContext context) {

		ResourceBundlesHandler rsHandler = getResourceBundlesHandler(context);
		String type = (String) getAttributes().get(JawrConstant.TYPE_ATTR);
		boolean async = Boolean.parseBoolean((String) getAttributes().get(JawrConstant.ASYNC_ATTR));
		boolean defer = Boolean.parseBoolean((String) getAttributes().get(JawrConstant.DEFER_ATTR));
		String crossorigin = (String) getAttributes().get(JawrConstant.CROSSORIGIN_ATTR);
		return RendererFactory.getJsBundleRenderer(rsHandler, type, getUseRandomParamFlag(rsHandler.getConfig()), async,
				defer, crossorigin);
	}
409674
public RequestContext renderJSONPretty(final JSONObject json) {
        final JsonRenderer jsonRenderer = new JsonRenderer();
        jsonRenderer.setJSONObject(json);
        jsonRenderer.setPretty(true);

        this.renderer = jsonRenderer;

        return this;
    }
150721
@Override
	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
		WFieldSet fieldSet = (WFieldSet) component;
		XmlStringBuilder xml = renderContext.getWriter();

		xml.appendTagOpen("ui:fieldset");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("hidden", fieldSet.isHidden(), "true");

		switch (fieldSet.getFrameType()) {
			case NO_BORDER:
				xml.appendOptionalAttribute("frame", "noborder");
				break;

			case NO_TEXT:
				xml.appendOptionalAttribute("frame", "notext");
				break;

			case NONE:
				xml.appendOptionalAttribute("frame", "none");
				break;

			case NORMAL:
			default:
				break;
		}

		xml.appendOptionalAttribute("required", fieldSet.isMandatory(), "true");
		xml.appendClose();

		// Render margin
		MarginRendererUtil.renderMargin(fieldSet, renderContext);

		// Label
		WDecoratedLabel label = fieldSet.getTitle();
		label.paint(renderContext);

		// Children
		xml.appendTag("ui:content");
		int size = fieldSet.getChildCount();

		for (int i = 0; i < size; i++) {
			WComponent child = fieldSet.getChildAt(i);

			// Skip label, as it has already been painted
			if (child != label) {
				child.paint(renderContext);
			}
		}

		xml.appendEndTag("ui:content");
		DiagnosticRenderUtil.renderDiagnostics(fieldSet, renderContext);
		xml.appendEndTag("ui:fieldset");
	}
10784
public RequestContext renderJSONValue(final String name, final Object obj) {
        if (renderer instanceof JsonRenderer) {
            final JsonRenderer r = (JsonRenderer) renderer;

            final JSONObject ret = r.getJSONObject();
            ret.put(name, obj);
        }

        return this;
    }
1254855
@Override
	public void paint(final RenderContext renderContext) {
		if (!DebugUtil.isDebugFeaturesEnabled() || !(renderContext instanceof WebXmlRenderContext)) {
			getBackingComponent().paint(renderContext);
			return;
		}

		AjaxOperation operation = AjaxHelper.getCurrentOperation();

		if (operation == null) {
			getBackingComponent().paint(renderContext);
			return;
		}

		getBackingComponent().paint(renderContext);

		XmlStringBuilder xml = ((WebXmlRenderContext) renderContext).getWriter();
		xml.appendTag("ui:debug");

		for (String targetId : operation.getTargets()) {
			ComponentWithContext target = WebUtilities.getComponentById(targetId, true);
			if (target != null) {
				writeDebugInfo(target.getComponent(), xml);
			}
		}

		xml.appendEndTag("ui:debug");
	}
298431
private JSON getJSON() throws JSONMarshallException {
        if (json == null) {
            JSONSettings settings = new JSONSettings(Include.NON_NULL);
            json = JSONFactory.newInstance(settings);
        }
        return json;
    }
492945
public static String renderModelAsJson(Node rootNode, boolean renderRoot) {
        if (renderRoot) {
            return renderSubnodes(rootNode == null ? new ArrayList<Node>() : new ArrayList<Node>(Arrays.asList(rootNode)));
        } else if (rootNode != null && rootNode.hasChild()) {
            return renderSubnodes(rootNode.getChilds());
        }

        return "";
    }
1163541
private JTable withColRenderers(final JTable table) {
        // Data renderers
        final DefaultTableCellRenderer dtcr = new DefaultTableCellRenderer();

        // BigDecimal
        table.setDefaultRenderer(BigDecimal.class, new TableCellRenderer() {
            public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {

                final BigDecimal bd = (BigDecimal) value;

                return dtcr.getTableCellRendererComponent(table, bd.toString(), isSelected, hasFocus, row, column);
            }
        });

        // Boolean
        table.setDefaultRenderer(Boolean.class, new TableCellRenderer() {
            public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {

                final Boolean b = (Boolean) value;

                return dtcr.getTableCellRendererComponent(table, Boolean.toString(b), isSelected, hasFocus, row, column);
            }
        });

        // Date
        table.setDefaultRenderer(java.sql.Date.class, new TableCellRenderer() {
            public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {

                final java.sql.Date d = (java.sql.Date) value;

                return dtcr.getTableCellRendererComponent(table, String.format("%tF", d), isSelected, hasFocus, row, column);
            }
        });

        // Time
        table.setDefaultRenderer(Time.class, new TableCellRenderer() {
            public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {

                final Time t = (Time) value;

                return dtcr.getTableCellRendererComponent(table, String.format("%tr", t), isSelected, hasFocus, row, column);
            }
        });

        // Timestamp
        table.setDefaultRenderer(Timestamp.class, new TableCellRenderer() {
            public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {

                final Time t = (Time) value;

                return dtcr.getTableCellRendererComponent(table, String.format("%tr", t), isSelected, hasFocus, row, column);
            }
        });

        return table;
    }
1247021
function () {
      this.clearContext(this.contextTop || this.contextContainer);

      if (this.overlayImage) {
        this.contextContainer.drawImage(this.overlayImage, 0, 0);
      }

      // we render the top context - last object
      if (this.selection && this._groupSelector) {
        this._drawSelection();
      }

      // delegate rendering to group selection if one exists
      // used for drawing selection borders/corners
      var activeGroup = this.getActiveGroup();
      if (activeGroup) {
        activeGroup.render(this.contextTop);
      }

      this.fire('after:render');

      return this;
    }
776015
public function render()
    {
        $this->controllerContext->getResponse()->setHeader('Content-Type', 'application/json');
        $propertiesToRender = $this->renderArray();
        $options = $this->getOption('jsonEncodingOptions');
        return json_encode($propertiesToRender, $options);
    }
913346
protected String __internalRender() {
        __internalBuild();
        if (__hasParent()) {
            __parent.__setLayoutContent(toString());
            __parent.addAllLayoutSections(layoutSections);
            __parent.addAllRenderProperties(renderProperties);
            __parent.__setRenderArgs(__renderArgs);
            //__parent.__renderArgs.putAll(__renderArgs);
            return __parent.render();
        } else {
            return toString();
        }
    }
137518
public RequestContext renderMsg(final String msg) {
        if (renderer instanceof JsonRenderer) {
            final JsonRenderer r = (JsonRenderer) renderer;

            final JSONObject ret = r.getJSONObject();
            ret.put(Keys.MSG, msg);
        }

        return this;
    }
792154
function renderToContext (geoJson, projection) {
    var shapePath = new THREE.ShapePath();
    var mapRenderContext = new ThreeJSRenderContext(shapePath);
    var mapPath = geoPath(projection, mapRenderContext);
    mapPath(geoJson);
    return mapRenderContext;
  }
343838
function() {
        var sb = [];

        for (var i=0; i < this.children.length; ++i) {
            // this.children[i].childrenRendered = false;
            sb[sb.length] = this.children[i].getHtml();
        }
        
        this.childrenRendered = true;

        return sb.join("");
    }
411903
public String render() {
        try {
            DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docFactory.newDocumentBuilder();

            // root elements
            doc = docBuilder.newDocument();
            rootElement = doc.createElement("application");
            Element element;
            rootElement.setAttribute("xmlns", "http://java.sun.com/xml/ns/javaee");
            rootElement.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
            rootElement.setAttribute("xsi:schemaLocation",
                    "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd");
            rootElement.setAttribute("version", "6");
            doc.appendChild(rootElement);

            element = doc.createElement("description");
            element.setTextContent("Autogenerated deployment for " + basename);
            rootElement.appendChild(element);

            element = doc.createElement("display-name");
            element.setTextContent(basename + "-full");
            rootElement.appendChild(element);

            for (String filename : ejbs) {
                writeEjbModule(filename);
            }

            for (Map.Entry<String, String> entry : webs) {
                writeWebModule(entry.getKey(), entry.getValue());
            }

            element = doc.createElement("library-directory");
            element.setTextContent("lib");
            rootElement.appendChild(element);

            TransformerFactory transformerFactory = TransformerFactory.newInstance();
            Transformer transformer = transformerFactory.newTransformer();
            DOMSource source = new DOMSource(doc);
            ByteArrayOutputStream bytes = new ByteArrayOutputStream();
            StreamResult result = new StreamResult(bytes);
            transformer.setOutputProperty(OutputKeys.INDENT, "yes");
            transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
            transformer.transform(source, result);

            return bytes.toString();
        } catch (TransformerException ex) {
            throw new IllegalStateException(ex);
        } catch (ParserConfigurationException ex) {
            throw new IllegalStateException(ex);
        }
    }
981323
public RequestContext renderData(final Object data) {
        if (renderer instanceof JsonRenderer) {
            final JsonRenderer r = (JsonRenderer) renderer;

            final JSONObject ret = r.getJSONObject();
            ret.put(Keys.DATA, data);
        }

        return this;
    }