Examples of writeURIAttribute()


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

    ResponseWriter writer = context.getResponseWriter();
    String cachedImgURI = LafIconProvider.getCacheImageURI(context) + uri;
    FacesContext facesContext = context.getFacesContext();
    if(facesContext != null)
      cachedImgURI = facesContext.getExternalContext().encodeResourceURL(cachedImgURI);
    writer.writeURIAttribute(attribute,
                          cachedImgURI,
              null);
  }
}
View Full Code Here

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

  {
    ResponseWriter writer = context.getResponseWriter();
    if (isDesktop)
    {
      StringBuffer clickRef = new StringBuffer(30);
      writer.writeURIAttribute("href", "#", null);

      if (isInline)
      {
        clickRef.append("return _calsd(");
View Full Code Here

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

    writer.startElement("img", comp);
    writer.writeAttribute("id", id, null);
    // Run through the ExternalContext resource URL encoder
    absoluteUri = context.getExternalContext().encodeResourceURL(
      absoluteUri.toString());
    writer.writeURIAttribute("src", absoluteUri, null);

    renderAltAndTooltipForImage(context, arc, altText);

    if (width != null)
    {
View Full Code Here

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

    String encodedUri = getBaseImageURI(context) + uri;
    FacesContext facesContext = context.getFacesContext();
    if (facesContext != null)
      encodedUri = facesContext.getExternalContext().encodeResourceURL(encodedUri);
    writer.writeURIAttribute(attribute, encodedUri, null);
  }


  protected static void renderHAlign(
    UIXRenderingContext context,
View Full Code Here

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

      String shortDesc =
        arc.getTranslatedString(isTop ? _PREVIOUS_ALT_KEY : _NEXT_ALT_KEY);
       
      if (!disabled)
      {
        writer.writeURIAttribute(XhtmlConstants.HREF_ATTRIBUTE, "#", null);
        writer.writeAttribute(XhtmlConstants.ONCLICK_ATTRIBUTE, onclick, null);

        writer.writeAttribute("title", shortDesc, null);
      }  
  
View Full Code Here

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

      styleClass = SkinSelectors.HGRID_NAV_ROW_ILINK_STYLE_CLASS;
    }
    else
    {
      styleClass = SkinSelectors.HGRID_NAV_ROW_ALINK_STYLE_CLASS;
      writer.writeURIAttribute(XhtmlConstants.HREF_ATTRIBUTE, "#", null);
      writer.writeAttribute(XhtmlConstants.ONCLICK_ATTRIBUTE, onclick, null);
      String shortDesc =
        arc.getTranslatedString(isTop ? _PREVIOUS_ALT_KEY : _NEXT_ALT_KEY);
      writer.writeAttribute("title", shortDesc, null);
    }  
View Full Code Here

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

                                 getBaseImageUri(context, arc)
                                  + XhtmlRenderer.TRANSPARENT_GIF);
      }
      else
      {
        writer.writeURIAttribute("src", "about:blank", null);
      }

      Object width = "0";
      Object height = "0";
View Full Code Here

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

    {
      if (isPDA(arc))
        writer.writeText(XhtmlConstants.NBSP_STRING, null);

      writer.startElement("a", null);
      writer.writeURIAttribute("href", "#", null);
      writer.writeAttribute("onclick", sortOnclick, null);
    }

    String altTextKey = null;
    if (sortability == SORT_ASCENDING)
View Full Code Here

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

            String media = (String) component.getAttributes().get("media");
            writer.writeAttribute("media", media == null ? "screen" : media ,null );
            writer.writeAttribute(HTML.TYPE_ATTR,
                    (resource.getContentType() == null ? HTML.STYLE_TYPE_TEXT_CSS
                            : resource.getContentType()) , null);
            writer.writeURIAttribute(HTML.HREF_ATTR,
                    facesContext.getExternalContext().encodeResourceURL(resource.getRequestPath()), null);
            writer.endElement(HTML.LINK_ELEM);
        }
    }
}
View Full Code Here

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

        {
            writer.writeAttribute(HTML.ACCEPT_CHARSET_ATTR, acceptCharset, null);
        }
        String encodedActionURL = facesContext.getExternalContext().encodeActionURL(actionURL);
       
        writer.writeURIAttribute(HTML.ACTION_ATTR,
                encodedActionURL,
                null);
       
        if (htmlForm instanceof ClientBehaviorHolder && JavascriptUtils.isJavascriptAllowed(
                facesContext.getExternalContext()))
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.