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`) | Specifies a 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`) | Attribute is a flag that defines the caching strategy. If 'cacheable' is set to false, the response will not be cached. If it is set to true, it will be cached and the serialized value of 'value' attribute plays the role of a cache key.
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`) | Defines 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`) | The attribute specifies shape and it position on the screen. Possible values: "rect: left-x, top-y, right-x, bottom-y", "circle: center-x, center-y, radius", "poly: x1, y1, x2, y2, ..., xN, yN". Notes: a) when giving the radius value in percents, user agents should calculate the final radius value in pixels based on the associated object's width and height; b) the radius value should be smaller than center-x and center-y values; c) for a polygon, the first and last coordinate pairs should have same x and y to close the shape (x1=xN; y1=yN) (when these coordinates are different, user agents should infer an additional pair to close a polygon). Coordinates are relative to the top left corner of an object. All values are lengths. All values are comma separated.
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)`) | Attribute references to the method that will be used for content creating. The method accepts two parameters. The first parameter has an OutputStream type. It is a reference to the steam that should be used for output. The second parameter is a reference to a 'value' attribute of the component.
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`) | The client-side script method to be called when the element loses the focus either when pointing a device or tabbing navigation. The attribute may be used with the same elements as onfocus
onclick | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when the element is clicked
ondblclick | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when the element is double-clicked
onfocus | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when the element gets the focus
onkeydown | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a key is pressed down over the element
onkeypress | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a key is pressed over the element and released
onkeyup | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a key is released
onmousedown | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a mouse button is pressed down over the element
onmousemove | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a pointer is moved within the element
onmouseout | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a pointer is moved away from the element
onmouseover | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a pointer is moved onto the element
onmouseup | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The client-side script method to be called when a mouse 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 rules to be applied to the component
styleClass | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Assigns one or more CSS class names to the component. 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`) | Specifies an image as a 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.