Examples of writeURIAttribute()


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

        href = facesContext.getExternalContext().encodeResourceURL(href);    //TODO: or encodeActionURL ?

        //write anchor
        writer.startElement(HTML.ANCHOR_ELEM, output);
        writer.writeAttribute(HTML.ID_ATTR, output.getClientId(facesContext), null);
        writer.writeURIAttribute(HTML.HREF_ATTR, href, null);
        HtmlRendererUtils.renderHTMLAttributes(writer, output, HTML.ANCHOR_PASSTHROUGH_ATTRIBUTES);
        writer.flush();
    }

    private void renderLinkParameter(DummyFormResponseWriter dummyFormResponseWriter,
View Full Code Here

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

      writer.writeText("\")", null);
    }
    else
    {
      // The "safe" case: just write out the source
      writer.writeURIAttribute("src", libURL, null);
    }

    writer.endElement("script");
  }
View Full Code Here

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

      return;

    ResponseWriter rw = context.getResponseWriter();
    rw.startElement("a", null);
    rw.writeAttribute("onclick", onclickString, null);
    rw.writeURIAttribute("href", "#", null);
  }

  private String _generateOnClickString(
    FacesContext        context,
    RenderingContext arc,
View Full Code Here

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

    // Write out the src attr
    String baseURI = _getBaseURI(context, arc);
    String uri = getRelativeURI(context, arc);
   
    if (baseURI == null)
      writer.writeURIAttribute("src", context.getExternalContext().encodeResourceURL(uri), null);
    else
      writer.writeURIAttribute("src",
                            context.getExternalContext().encodeResourceURL(baseURI + uri), null);

    // Write out the width/height attrs
View Full Code Here

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

    String uri = getRelativeURI(context, arc);
   
    if (baseURI == null)
      writer.writeURIAttribute("src", context.getExternalContext().encodeResourceURL(uri), null);
    else
      writer.writeURIAttribute("src",
                            context.getExternalContext().encodeResourceURL(baseURI + uri), null);

    // Write out the width/height attrs
    Object width = _getWidth(arc, attrs);
    if (width != null)
View Full Code Here

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

    {
      TreeTableRenderingContext ttrc = TreeTableRenderingContext.getInstance();
      UIXTreeTable tree = ttrc.getUIXTreeTable();
      ResponseWriter out = context.getResponseWriter();
      out.startElement("a", tree);
      out.writeURIAttribute("href", "#" , null);
      // put style classes on the links
      if (isLastChild)
      {
        renderStyleClass(
          context, arc,
View Full Code Here

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

    writer.writeAttribute("name", id, null);
    if (imageSrc != null)
    {
      imageSrc = context.getExternalContext().encodeResourceURL(imageSrc);
      writer.writeAttribute("type", "image", "type");
      writer.writeURIAttribute("src", imageSrc, "image");
    }
    else
    {
      writer.writeAttribute("type", type.toLowerCase(), "type");
      writer.writeAttribute("value", label, "value");
View Full Code Here

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

    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("a", null);
    writer.writeAttribute(XhtmlConstants.ID_ATTRIBUTE, id, null);
    renderStyleClass(context, arc, SkinSelectors.NAV_BAR_ALINK_STYLE_CLASS);
    writer.writeAttribute("onclick", onclick, null);
    writer.writeURIAttribute("href", "#", null);
    writer.writeText(arc.getTranslatedString(translationKey), null);
    writer.endElement("a");

    if (hasDivider)
      writer.writeText(LINKS_DIVIDER_TEXT, null);
View Full Code Here

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

    ResponseWriter writer = context.getResponseWriter();
    if (records > 0)
    {
      writer.startElement("a", null);
      writer.writeURIAttribute("href", "#", null);
      writer.writeAttribute("onclick", onclick, null);

      // The navBar needs its initial focus to be on the Next button,
      // according to the BLAF. Render a special id on the Next button
      // if this navBar is to have the initial focus. (unless it needs
View Full Code Here

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

  {
    ResponseWriter writer = context.getResponseWriter();
    if (onclick != null)
    {
      writer.startElement("a", null);
      writer.writeURIAttribute("href", "#", null);
      writer.writeAttribute("onclick", onclick, null);
    }

    boolean isEnabled = (onclick != null);
    String titleKey = getIconTitleKey(isNext, isEnabled);
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.