|
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,
|