创建一个表单
允许动态属性:false |
|||||
---|---|---|---|---|---|
名称 | 必需 | 默认值 | 类型 | 描述 | |
acceptcharset | String | The accepted charsets for this form. The values may be comma or blank delimited. | |||
accesskey | String | Set the html accesskey attribute on rendered html element | |||
action | current action | String | Set action name to submit to, without .action suffix | ||
cssClass | String | The css class to use for element | |||
cssErrorClass | String | The css error class to use for element | |||
cssErrorStyle | String | The css error style definitions for element to use | |||
cssStyle | String | The css style definitions for element to use | |||
disabled | String | Set the html disabled attribute on rendered html element | |||
enctype | String | HTML form enctype attribute | |||
errorPosition | String | Define error position of form element (top|bottom) | |||
focusElement | String | Id of element that will receive the focus when page loads. | |||
id | String | HTML id attribute | |||
includeContext | true | Boolean | Whether actual context should be included in URL | ||
javascriptTooltip | false | Boolean | Use JavaScript to generate tooltips | ||
key | String | Set the key (name, value, label) for this particular component | |||
label | String | Label expression used for rendering an element specific label | |||
labelSeparator | : | String | String that will be appended to the label | ||
labelposition | String | Define label position of form element (top/left) | |||
method | String | HTML form method attribute | |||
name | String | The name to set for element | |||
namespace | current namespace | String | Namespace for action to submit to | ||
onblur | String | Set the html onblur attribute on rendered html element | |||
onchange | String | Set the html onchange attribute on rendered html element | |||
onclick | String | Set the html onclick attribute on rendered html element | |||
ondblclick | String | Set the html ondblclick attribute on rendered html element | |||
onfocus | String | Set the html onfocus attribute on rendered html element | |||
onkeydown | String | Set the html onkeydown attribute on rendered html element | |||
onkeypress | String | Set the html onkeypress attribute on rendered html element | |||
onkeyup | String | Set the html onkeyup attribute on rendered html element | |||
onmousedown | String | Set the html onmousedown attribute on rendered html element | |||
onmousemove | String | Set the html onmousemove attribute on rendered html element | |||
onmouseout | String | Set the html onmouseout attribute on rendered html element | |||
onmouseover | String | Set the html onmouseover attribute on rendered html element | |||
onmouseup | String | Set the html onmouseup attribute on rendered html element | |||
onreset | String | HTML onreset attribute | |||
onselect | String | Set the html onselect attribute on rendered html element | |||
onsubmit | String | HTML onsubmit attribute | |||
openTemplate | String | Set template to use for opening the rendered html. | |||
portletMode | String | The portlet mode to display after the form submit | |||
requiredLabel | false | Boolean | If set to true, the rendered element will indicate that input is required | ||
requiredPosition | String | Define required position of required form element (left|right) | |||
tabindex | String | Set the html tabindex attribute on rendered html element | |||
target | String | HTML form target attribute | |||
template | String | The template (other than default) to use for rendering the element | |||
templateDir | String | The template directory. | |||
theme | String | The theme (other than default) to use for rendering the element | |||
title | String | Set the html title attribute on rendered html element | |||
tooltip | String | Set the tooltip of this particular component | |||
tooltipCssClass | StrutsTTClassic | String | CSS class applied to JavaScrip tooltips | ||
tooltipDelay | Classic | String | Delay in milliseconds, before showing JavaScript tooltips | ||
tooltipIconPath | String | Icon path used for image that will have the tooltip | |||
validate | false | Boolean | Whether client side/remote validation should be performed. Only useful with theme xhtml/ajax | ||
value | String | Preset the value of input element. | |||
windowState | String | The window state to display after the form submit | |||
layout | horizontal | String | 表单布局,可选值:horizontal, vertical, inline | ||
columns | 1 | Integer | 表单为水平布局(horizontal)时,显示的列数 |
example descript...
这里是示例代码块