a4j
Tag mediaOutput


The <a4j:mediaOutput> component is used for generating images, video, sounds, and other resources defined on the fly.

@author shura


Tag Information
Component type org.richfaces.MediaOutput
Tag Name a4j:mediaOutput
Renderer Type org.richfaces.MediaOutputRenderer
Handler Class org.richfaces.view.facelets.html.MediaOutputHandler

Attributes
Name Required Type Description
accesskey false java.lang.String Access key that, when pressed, transfers focus to this element.
align false 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 java.lang.String Specifies a space-separated list of URIs
binding false javax.faces.component.UIComponent The value binding expression used to wire up this component to a component property of a JavaBean class
border 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
cacheable false 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 java.lang.String The character encoding of a resource designated by this hyperlink
classid false java.lang.String Identifies an implementation
codebase false java.lang.String Base URI for classid, data, archive
codetype false java.lang.String Defines content type for code
converter false javax.faces.convert.Converter Converter instance registered with this component.
coords false 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:

  1. 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;
  2. the radius value should be smaller than center-x and center-y values;
  3. 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 javax.el.MethodExpression 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 java.lang.String Declare but don't instantiate flag
dir 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).
element false java.lang.String Get Element name for rendering ( imj , a , object, applet ).
expires false java.util.Date The attribute allows to manage caching and defines the period after which a resource is reloaded.
fileName false java.lang.String Filename of the resource to be served
hreflang false java.lang.String Base language of a resource specified with the href attribute; hreflang may only be used with href
hspace 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
id 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.
ismap false boolean Use server-side image map
lang false java.lang.String Code describing the language used in the generated markup for this component.
lastModified false 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 java.lang.String Geterated content mime-type for append to response header ( 'image/jpeg' etc )
onblur false java.lang.String Javascript code executed when this element loses focus.
onclick false java.lang.String Javascript code executed when a pointer button is clicked over this element.
ondblclick false java.lang.String Javascript code executed when a pointer button is double clicked over this element.
onfocus false java.lang.String Javascript code executed when this element receives focus.
onkeydown false java.lang.String Javascript code executed when a key is pressed down over this element.
onkeypress false java.lang.String Javascript code executed when a key is pressed and released over this element.
onkeyup false java.lang.String Javascript code executed when a key is released over this element.
onmousedown false java.lang.String Javascript code executed when a pointer button is pressed down over this element.
onmousemove false java.lang.String Javascript code executed when a pointer button is moved within this element.
onmouseout false java.lang.String Javascript code executed when a pointer button is moved away from this element.
onmouseover false java.lang.String Javascript code executed when a pointer button is moved onto this element.
onmouseup false java.lang.String Javascript code executed when a pointer button is released over this element.
rel 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
rendered false boolean Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
rev 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
shape false java.lang.String This attribute specifies the shape of a region. The possible values are "default", "rect", "circle" and "poly".
standby false java.lang.String Message to show while loading
style false java.lang.String CSS style rules to be applied to the component
styleClass false java.lang.String Assigns one or more CSS class names to the component. Corresponds to the HTML "class" attribute.
tabindex 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
target 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
title false java.lang.String Advisory title information about markup elements generated for this component
type false java.lang.String The content type of the resource designated by this hyperlink
uriAttribute false java.lang.String Get URI attribute for resource ( src for images, href for links etc ).
usemap false java.lang.String Specifies an image as a client-side image-map
value false 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 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


Output Generated by Tag Library Documentation Generator.