随笔-7  评论-24  文章-102  trackbacks-0

Form Tags - WebWork2文档中文化计划

Struts2.0标签库(三)表单标签

及 Struts 2深入详解 by.孙鑫



描述

对于表单标签,分为两种标签:form标签本身,和所有来包装单个的表单元素的其他标签.form标签本身的行为不同于它内部的元素,这是很重要的.在我们为所有表单标签,包括form标签在内,提供一个参考手册之前,我们必须先描述一些通用的属性.


通用属性

属性 Theme 数据类型 描述
cssClass simple String 定义 html class 属性
cssStyle simple String 定义html style 属性
title simple String 定义html title 属性
disabled simple String 定义html disabled 属性
label xhtml String 定义表单元素的label
labelPosition xhtml String 定义表单元素的label位置(top/left),缺省为left
requiredposition xhtml String 定义required 标识相对label元素的位置 (left/right),缺省是 right
name simple String 表单元素的name映射
required xhtml Boolean 在label中添加 * (true增加,否则不增加)
tabIndex simple String 定义html tabindex 属性
value simple Object 定义表单元素的value


Javascript相关属性

属性 Theme 数据类型 描述
onclick simple String html javascript onclick 属性
ondbclick simple String html javascript ondbclick 属性
onmousedown simple String html javascript onmousedown 属性
onmouseup simple String html javascript onmouseup 属性
onmouseover simple String html javascript onmouseover 属性
onmouseout simple String html javascript onmouseout 属性
onfocus simple String html javascript onfocus 属性
onblur simple String html javascript onblur 属性
onkeypress simple String html javascript onkeypress 属性
onkeyup simple String html javascript onkeyup 属性
onkeydown simple String html javascript onkeydown 属性
onselect simple String html javascript onselect 属性
onchange simple String html javascript onchange 属性

posted on 2009-05-24 23:02 黄小二 阅读(558) 评论(0)  编辑  收藏 所属分类: S/S2SHJ2EE

只有注册用户登录后才能发表评论。


网站导航: