Examples of UIMetaResource


Examples of org.dekka.component.resource.UIMetaResource

    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        if (!RenderKitUtils.assertValid(context, component)) {
            return;
        }
       
        final UIMetaResource mrl = (UIMetaResource) component;

        if (mrl.getParent() instanceof UIResourceLoader) {
            if (mrl.getName() != null) {
                writeMetaName(context, component);
            } else {
                writeMetaHttpEquiv(context, component);
            }
        } else {
View Full Code Here

Examples of org.dekka.component.resource.UIMetaResource

     * @param component UIComponent to be rendered
     * @throws java.io.IOException if an input/output error occurs while rendering
     */
    protected void writeMetaName(final FacesContext context, final UIComponent component) throws IOException {
        final ResponseWriter writer = context.getResponseWriter();
        final UIMetaResource mrl = (UIMetaResource) component;
        final String content;

        if (mrl.isRendered()) {
            if (mrl.getName() != null) {
                writer.startElement("meta", component);
                writer.writeAttribute("name", mrl.getName(), null);
                if (mrl.getLang() != null) {
                    writer.writeAttribute("lang", mrl.getLang(), null);
                }
                if (mrl.getContent() != null) {
                    content = mrl.getContent();
                } else {
                    content = "";
                }
                writer.writeAttribute("content", content, null);

View Full Code Here

Examples of org.dekka.component.resource.UIMetaResource

        }
    }

    protected void writeMetaHttpEquiv(final FacesContext context, final UIComponent component) throws IOException {
        final ResponseWriter writer = context.getResponseWriter();
        final UIMetaResource mrl = (UIMetaResource) component;
        final String content;

        if (mrl.isRendered()) {
            if (mrl.getHttpEquiv() != null) {
                writer.startElement("meta", component);
                writer.writeAttribute("http-equiv", mrl.getHttpEquiv(), null);
                if (mrl.getLang() != null) {
                    writer.writeAttribute("lang", mrl.getLang(), null);
                }
                if (mrl.getContent() != null) {
                    content = mrl.getContent();
                } else {
                    content = "";
                }
                writer.writeAttribute("content", content, null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.