Examples of writeText()


Examples of javax.faces.context.ResponseWriter.writeText()

            ResponseWriter responseWriter = facesContext.getResponseWriter();

            responseWriter.startElement(HTML.SCRIPT_ELEM, component);
            responseWriter.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
            responseWriter.writeText("var " + AJAX_SUBMIT + " = function(data, options) {" + ajaxFunction.toScript()
                    + "};", null);
            responseWriter.endElement(HTML.SCRIPT_ELEM);
        }
    }
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

        PartialViewContext pvc = context.getPartialViewContext();
        if (!pvc.isAjaxRequest()) {
            writer.startElement("style", table);
            writer.writeAttribute(HtmlConstants.TYPE_ATTR, "text/css", null);
            writer.writeText(getCSSText(context, table), null);
            writer.endElement("style");
        } else {
            writer.startElement(HtmlConstants.SCRIPT_ELEM, table);
            writer.writeAttribute(HtmlConstants.TYPE_ATTR, HtmlConstants.TEXT_JAVASCRIPT_TYPE, null);
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

    public void writeScript(FacesContext context, UIComponent component, Object script) throws IOException {
        ResponseWriter writer = context.getResponseWriter();

        writer.startElement(HtmlConstants.SCRIPT_ELEM, component);
        writer.writeAttribute(HtmlConstants.TYPE_ATTR, "text/javascript", "type");
        writer.writeText(script, null);
        writer.endElement(HtmlConstants.SCRIPT_ELEM);
    }

    /**
     * If target component contains generated id and for doesn't, correct for id
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

            writer.writeAttribute(HtmlConstants.TYPE_ATTR, HtmlConstants.TEXT_JAVASCRIPT_TYPE, null);

            String cssText = getCSSText(context, table);
            JSFunction function = new JSFunction("RichFaces.utils.addCSSText", cssText, table.getClientId(context) + ":st");

            writer.writeText(function.toScript(), null);

            writer.endElement(HtmlConstants.SCRIPT_ELEM);
        }
    }
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

                    escape = RendererUtils.getBooleanAttribute(uiComponent, org.apache.myfaces.shared_impl.renderkit.JSFAttr.ESCAPE_ATTR,
                                                               true); //default is to escape
                }               
                if (escape)
                {
                    writer.writeText(text, org.apache.myfaces.shared_impl.renderkit.JSFAttr.VALUE_ATTR);
                }
                else
                {
                    writer.write(text);
                }
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

            }

            if (escape)
            {
                if (log.isLoggable(Level.FINE)) log.fine("renderOutputText writing '" + text + "'");
                writer.writeText(text, org.apache.myfaces.shared_impl.renderkit.JSFAttr.VALUE_ATTR);
            }
            else
            {
                writer.write(text);
            }
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

        }

        // render value as required by JSF 1.1 renderkitdocs
        if(value != null)
        {
            writer.writeText(value.toString(), JSFAttr.VALUE_ATTR);
        }
       
        // render warning message for a h:commandLink with no nesting form
        if (formInfo == null)
        {
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

        }
       
        // render warning message for a h:commandLink with no nesting form
        if (formInfo == null)
        {
            writer.writeText(": This link is deactivated, because it is not embedded in a JSF form.", null);
        }
    }

    protected void renderJavaScriptAnchorStart(FacesContext facesContext,
                                               ResponseWriter writer,
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

            Object value = output.getValue();

            if(value != null)
            {
                writer.writeText(value.toString(), JSFAttr.VALUE_ATTR);
            }
        }
        else
        {
            //write anchor
View Full Code Here

Examples of javax.faces.context.ResponseWriter.writeText()

        {
            writer.endElement(HTML.SPAN_ELEM);
        }
        else
        {
            writer.writeText (org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue
                 (facesContext, component), null);
            writer.endElement(HTML.ANCHOR_ELEM);
        }
    }
   
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.