mediaOutput (RichFaces JSF components library Tag library documentation)
Keywords: $title

Overview | Library | Tag | Help
| FRAMES NO FRAMES

## Ajax4Jsf
Tag mediaOutput

Class for create any link-type elements to user-generated resources : images, sounds, video, active objects, applets etc. Method specified in "CreateContent" attribute will put the data from Data Bean specified in "value" attribute to the OutputStream. Important: Data Bean specified in "value" must implement Serializable.

Tag Information
Tag Class | org.ajax4jsf.taglib.html.jsp.MediaOutputTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | Link to user-generated resource

Attributes
Name | Required | Request-time | Type | Description
declare | false | false | `java.lang.String` | declare but don't instantiate flag
dir | false | false | `java.lang.String` | Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left)
id | false | false | `java.lang.String` | Every component may have a unique id that is automatically created if omitted
rev | false | false | `java.lang.String` | A reverse link from the anchor specified by this hyperlink to the current document. The value of this attribute is a space-separated list of link types
mimeType | false | false | `java.lang.String` | Geterated content mime-type for append to response header ( 'image/jpeg' etc )
style | false | false | `java.lang.String` | CSS style(s) is/are to be applied when this component is rendered
onmouseover | false | false | `java.lang.String` | HTML: a script expression; a pointer is moved onto
onkeyup | false | false | `java.lang.String` | HTML: a script expression; a key is released
tabindex | false | false | `java.lang.String` | This attribute specifies the position of the current element in the tabbing order for the current document. This value must be a number between 0 and 32767. User agents should ignore leading zeros
archive | false | false | `java.lang.String` | space-separated list of URIs
converter | false | false | `java.lang.String` | ID of a converter to be used or a reference to a converter.
lang | false | false | `java.lang.String` | Code describing the language used in the generated markup for this component
createContent | false | false | `java.lang.String` | Method call expression to send generated resource to OutputStream. It must have two parameter with a type of java.io.OutputStream and java.lang.Object ( deserialized value of data attribute )
onmouseout | false | false | `java.lang.String` | HTML: a script expression; a pointer is moved away
element | false | false | `java.lang.String` | Name of html element for resource link - may be <a> <img> <object> <applet> <script> or <link>
rel | false | false | `java.lang.String` | The relationship from the current document to the anchor specified by this hyperlink. The value of this attribute is a space-separated list of link types
onmouseup | false | false | `java.lang.String` | HTML: script expression; a pointer button is released
cacheable | false | false | `java.lang.String` | If "true", the resource is cached (on the server and the client sides).
binding | false | false | `java.lang.String` | The attribute takes a value-binding expression for a component property of a backing bean
expires | false | false | `java.lang.String` | The attribute allows to manage caching and defines the period after which a resource is reloaded.
onmousemove | false | false | `java.lang.String` | HTML: a script expression; a pointer is moved within
coords | false | false | `java.lang.String` | This attribute specifies the position and shape on the screen. The number and order of values depends on the shape being defined. Possible combinations: * rect: left-x, top-y, right-x, bottom-y. * circle: center-x, center-y, radius. Note. When the radius value is percentage value, user agents should calculate the final radius value based on the associated object's width and height. The radius should be the smaller value of the two. * poly: x1, y1, x2, y2, ..., xN, yN. The first x and y coordinate pair and the last should be the same to close the polygon. When these coordinate values are not the same, user agents should infer an additional coordinate pair to close the polygon. Coordinates are relative to the top, left corner of the object. All values are lengths. All values are separated by commas
title | false | false | `java.lang.String` | Advisory title information about markup elements generated for this component
shape | false | false | `java.lang.String` | default|rect|circle|poly [CI] This attribute specifies the shape of a region. Possible values: * default: Specifies the entire region. * rect: Define a rectangular region. * circle: Define a circular region. * poly: Define a polygonal region.
target | false | false | `java.lang.String` | This attribute specifies the name of a frame where a document is to be opened. By assigning a name to a frame via the name attribute, authors can refer to it as the "target" of links defined by other elements
session | false | false | `java.lang.String` | If "true", a session for an object generation is restored.
charset | false | false | `java.lang.String` | The character encoding of a resource designated by this hyperlink
rendered | false | false | `java.lang.String` | If "false", this component is not rendered
codetype | false | false | `java.lang.String` | content type for code
classid | false | false | `java.lang.String` | identifies an implementation
styleClass | false | false | `java.lang.String` | Corresponds to the HTML class attribute
accesskey | false | false | `java.lang.String` | This attribute assigns an access key to an element. An access key is a single character from the document character set. Note: Authors should consider the input method of the expected reader when specifying an accesskey
onkeypress | false | false | `java.lang.String` | HTML: a script expression; a key is pressed and released
ondblclick | false | false | `java.lang.String` | HTML: a script expression; a pointer button is double-clicked
align | false | false | `java.lang.String` | bottom|middle|top|left|right Deprecated. This attribute specifies the position of an IMG, OBJECT, or APPLET with respect to its context. The following values for align concern the object's position with respect to surrounding text: * bottom: means that the bottom of the object should be vertically aligned with the current baseline. This is the default value. * middle: means that the center of the object should be vertically aligned with the current baseline. * top: means that the top of the object should be vertically aligned with the top of the current text line
vspace | false | false | `java.lang.String` | Deprecated. This attribute specifies the amount of white space to be inserted above and below an IMG, APPLET, or OBJECT. The default value is not specified, but is generally a small, non-zero length
lastModified | false | false | `java.lang.String` | The attribute allows to manage caching. A browser can send request with the header "If-Modified-Since" for necessity of object reloading. If time of modification is earlier, then the framework doesn't call generation and return code 304.
usemap | false | false | `java.lang.String` | use client-side image map
standby | false | false | `java.lang.String` | message to show while loading
border | false | false | `java.lang.String` | Deprecated. This attribute specifies the width of an IMG or OBJECT border, in pixels. The default value for this attribute depends on the user agent
onblur | false | false | `java.lang.String` | JavaScript code. The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation. It may be used with the same elements as onfocus
value | false | false | `java.lang.String` | Data value calculated at render time and stored in URI (also as part of cache Key ), at generation time passed to send method. Can be used for update cache at change of generating conditions, and for creating beans as "Lightweight" pattern components (request scope). IMPORTANT: Since serialized data stored in URI, avoid using big objects.
hreflang | false | false | `java.lang.String` | Base language of a resource specified with the href attribute; hreflang may only be used with href
codebase | false | false | `java.lang.String` | base URI for classid, data, archive
type | false | false | `java.lang.String` | The content type of the resource designated by this hyperlink
uriAttribute | false | false | `java.lang.String` | Name of attribute for resource-link attribute ( 'href' for <a>, 'src' for <img> or <script>, etc
onclick | false | false | `java.lang.String` | HTML: a script expression; a pointer button is clicked
ismap | false | false | `java.lang.String` | use server-side image map
onkeydown | false | false | `java.lang.String` | HTML: a script expression; a key is pressed down
onmousedown | false | false | `java.lang.String` | HTML: script expression; a pointer button is pressed down
hspace | false | false | `java.lang.String` | Deprecated. This attribute specifies the amount of white space to be inserted to the left and right of an IMG, APPLET, or OBJECT. The default value is not specified, but is generally a small, non-zero length
onfocus | false | false | `java.lang.String` | JavaScript code. The onfocus event occurs when an element gets focus

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.