dWebSpec Dictionary
CONTEXT: descriptors->element->passthrough-attributes




All Details Standard Only Platform Only
Structured Web info and helpTechnologies
 Home Page
 Product Page
 Download Page
 Feedback
Javascript Tree Menu

Results for:

 element.passthrough-attributes 
Prev  Topic  Next

One must keep in mind the fact that the source content starts as pure HTML/x HTML file and the elements therein would be converted as necessary, to the elements of the dynamic platform. The sole purpose of the elements of the active platform being, the rendering of the final HTML/x HTML at runtime after including the data content as well as the dynamic presentation effects.

As such, the matter boils down to whether the source content presentation specification, have equivalent placeholders within the active elements, plus whether these attributes would be reproduced verbatim, in the final HTML/x HTML code. In other words, whether these attributes would pass through and emerge in the final form.

A table is presented here for the attributes of the native HTML elements that are accepted on the specific platform.

 Struts 1.x  

Struts tags in general have attributes that are parallel to their HTML equivalent. However, since the elements are implemented on the platform as tags, which must have pre-defined attributes, there are usually many omissions. Furthermore, subsequent versions, tend to include more and more attributes from the HTML set. The table presented below, is as of version 1.3.1.

 Clear pass through

Attribute Description
accesskey A key that is used to move focus to an element
accept Comma-delimited set of content types that the server you submit to knows how to process. This list can be used by the client browser to limit the set of file options that is made available for selection. If not specified, no content type list will be sent.
alt The alternate text for this element.
border Pixel value for an element?s border width
dir Direction for text. Valid values are ltr (left to right) and rtl (right to left).
disabled Disabled state of an input element or button
lang Base language of an element?s attributes and text
maxlength Maximum number of characters for text fields
readonly Read-only state of an input field; text can be selected in a readonly field but not edited
rows Number of visible rows in a text area. h:dataTable has a rows attribute, but it?s not an HTML pass-through attribute.
size Size of an input field
src
style Inline style information
tabindex Numerical value specifying a tab index
target The name of a frame in which a document is opened
title A title, used for accessibility, that describes an element. Visual browsers typically create tooltips for the title?s value
type Type of a link; for example, "stylesheet"
width Width of an element
onblur JavaScript event handler executed when this element loses input focus.
onchange JavaScript event handler executed when this element loses input focus and its value has changed.
onclick JavaScript event handler executed when this element receives a mouse click.
ondblclick JavaScript event handler executed when this element receives a mouse double click.
onfocus JavaScript event handler executed when this element receives input focus.
onkeydown JavaScript event handler executed when this element has focus and a key is depressed.
onkeypress JavaScript event handler executed when this element has focus and a key is depressed and released.
onkeyup JavaScript event handler executed when this element has focus and a key is released.
onmousedown JavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed.
onmousemove JavaScript event handler executed when this element is under the mouse pointer and the pointer is moved.
onmouseout JavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element.
onmouseover JavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element.
onmouseup JavaScript event handler executed when this element is under the mouse pointer and a mouse button is released.
onreset Form is reset
onselect Text is selected in an input field
onsubmit Form is submitted

Some of these could be specified as externalized keys, by using the alternative attribute provided by Struts.

alt altKey
title titleKey
src srcKey

Pass through with naming collision

class styleClass
id styleId

Pass through with value collision,

Prev Next