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
accesskey | false | false | `javax.el.ValueExpression` (must evaluate to `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
align | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Deprecated. This attribute specifies the position of an IMG, OBJECT, or APPLET with respect to its context. The possible values are "bottom", "middle", "top", "left" and "right". The default value is "middle".
archive | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | space-separated list of URIs
binding | false | false | `javax.el.ValueExpression` (must evaluate to `javax.faces.component.UIComponent`) | The attribute takes a value-binding expression for a component property of a backing bean
border | false | false | `javax.el.ValueExpression` (must evaluate to `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
cacheable | false | false | `javax.el.ValueExpression` (must evaluate to `boolean`) | If "true", the resource is cached (on the server and the client sides).
charset | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The character encoding of a resource designated by this hyperlink
classid | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | identifies an implementation
codebase | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | base URI for classid, data, archive
codetype | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | content type for code
converter | false | false | `javax.el.ValueExpression` (must evaluate to `javax.faces.convert.Converter`) | ID of a converter to be used or a reference to a converter.
coords | false | false | `javax.el.ValueExpression` (must evaluate to `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
createContent | false | false | `javax.el.MethodExpression` (signature must match `void createContent(java.io.OutputStream,java.lang.Object)`) | 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 )
createContentExpression | false | false | `javax.el.MethodExpression` (signature must match `void createContentExpression(java.io.OutputStream,java.lang.Object)`) | 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 )
declare | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | declare but don't instantiate flag
dir | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left)
element | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Name of html element for resource link - may be <a> <img> <object> <applet> <script> or <link>
expires | false | false | `javax.el.ValueExpression` (must evaluate to `java.util.Date`) | The attribute allows to manage caching and defines the period after which a resource is reloaded.
hreflang | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Base language of a resource specified with the href attribute; hreflang may only be used with href
hspace | false | false | `javax.el.ValueExpression` (must evaluate to `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
id | false | false | `java.lang.String` | Every component may have a unique id that is automatically created if omitted
ismap | false | false | `javax.el.ValueExpression` (must evaluate to `boolean`) | use server-side image map
lang | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Code describing the language used in the generated markup for this component
lastModified | false | false | `javax.el.ValueExpression` (must evaluate to `java.util.Date`) | 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.
mimeType | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Geterated content mime-type for append to response header ( 'image/jpeg' etc )
onblur | false | false | `javax.el.ValueExpression` (must evaluate to `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
onclick | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a pointer button is clicked
ondblclick | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a pointer button is double-clicked
onfocus | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | JavaScript code. The onfocus event occurs when an element gets focus
onkeydown | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a key is pressed down
onkeypress | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a key is pressed and released
onkeyup | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a key is released
onmousedown | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: script expression; a pointer button is pressed down
onmousemove | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a pointer is moved within
onmouseout | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a pointer is moved away
onmouseover | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: a script expression; a pointer is moved onto
onmouseup | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | HTML: script expression; a pointer button is released
rel | false | false | `javax.el.ValueExpression` (must evaluate to `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
rendered | false | false | `javax.el.ValueExpression` (must evaluate to `boolean`) | If "false", this component is not rendered
rev | false | false | `javax.el.ValueExpression` (must evaluate to `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
session | false | false | `javax.el.ValueExpression` (must evaluate to `boolean`) | If "true", a session for an object generation is restored.
shape | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | This attribute specifies the shape of a region. The possible values are "default", "rect", "circle" and "poly".
standby | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | message to show while loading
style | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | CSS style(s) is/are to be applied when this component is rendered
styleClass | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Corresponds to the HTML class attribute
tabindex | false | false | `javax.el.ValueExpression` (must evaluate to `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
target | false | false | `javax.el.ValueExpression` (must evaluate to `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
title | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Advisory title information about markup elements generated for this component
type | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The content type of the resource designated by this hyperlink
uriAttribute | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Name of attribute for resource-link attribute ( 'href' for <a>, 'src' for <img> or <script>, etc)
usemap | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | use client-side image map
value | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.Object`) | 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.
vspace | false | false | `javax.el.ValueExpression` (must evaluate to `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

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.