ICEfaces Component Suite
Tag outputResource


The outputResource component can be used to expose resources to the page. These resources can be rendered as links that trigger the browser to open the resource as an attachment, or open directly from the current page. Any class that implements the com.icesoft.faces.context.Resource can be used to expose the resource.


Tag Information
Tag Classcom.icesoft.faces.component.outputresource.OutputResourceTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
attachmentfalsefalsejava.lang.String If true, specifies that the resource should be downloaded as an attachment. See also the resource attribute.
bindingfalsefalsejava.lang.String The value binding expression linking this component to a property in a backing bean
fileNamefalsefalsejava.lang.String The file name to be used for the attachment header. If the label is not specified the file name will be used. See also the resource attribute.
idfalsefalsejava.lang.String The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
imagefalsefalsejava.lang.String The image path that will be used to display an image for link instead of text.
labelfalsefalsejava.lang.String The label to be displayed for the resource. The label will be used for the text of the link or button. If an image is used, the label will be used as the alt attribute value of the image element.
lastModifiedfalsefalsejava.lang.String The java.util.Data object specifying the last modified header that will be sent to the browser for this resource. See also the resource attribute.
mimeTypefalsefalsejava.lang.String The mime-type for the resource. If not specified, and available from the backing Resource, the Resource's mime-type will be used. See also the resource attribute.
renderedfalsefalsejava.lang.String Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
renderedOnUserRolefalsefalsejava.lang.String If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.
resourcefalsefalsejava.lang.String The object of type com.icesoft.faces.context.Resource that will be used. It can be use to override the attachment, fileName, lastModified and mimeType attributes via the withOptions() method.
sharedfalsefalsejava.lang.String If true (default), specifies that the resource should be cached by the resource registry. If cached, resources having the same signature (@see Resource.calculateDigest() ) will be registered only once, and the same response will be be provided for that resource by the ResourceServer. Therefore, if the developer has to dynamically set any properties on the outputResource component, and have those properties applied dynamically to individual users, then the 'shared' attribute should be set to false.
stylefalsefalsejava.lang.String CSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejava.lang.String Space-separated list of CSS style class(es) to be applied when this element is rendered. This value is passed through as the "class" attribute on generated markup. The base name for all style classes. Default value is iceOutLnk if rendered as a link, or iceCmdBtn if rendered as a button.
targetfalsefalsejava.lang.String Value of the target attribute when resource is rendered as a link. Default is "_blank".
typefalsefalsejava.lang.String The type of link to render: link (default) image: renders a link with an image (must be used with the image attribute) button: renders a button with the text from value

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.