Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICE Components
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 Class | com.icesoft.faces.component.outputresource.OutputResourceTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
attachment | false | false | `java.lang.String` | If true, specifies that the resource should be downloaded as an attachment. See also the resource attribute.
binding | false | false | `java.lang.String` | The value binding expression linking this component to a property in a backing bean
disabled | false | false | `java.lang.String` | Flag indicating that this element must never receive focus or be included in a subsequent submit.
fileName | false | false | `java.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.
id | false | false | `java.lang.String` | The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
image | false | false | `java.lang.String` | The image path that will be used to display an image for link instead of text.
label | false | false | `java.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.
lastModified | false | false | `java.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.
mimeType | false | false | `java.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.
rendered | false | false | `java.lang.String` | Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
renderedOnUserRole | false | false | `java.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.
resource | false | false | `java.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.
shared | false | false | `java.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.
style | false | false | `java.lang.String` | CSS style(s) to be applied when this component is rendered.
styleClass | false | false | `java.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.
target | false | false | `java.lang.String` | Value of the target attribute when resource is rendered as a link. Default is "_blank".
type | false | false | `java.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.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.