字典示例

1.radio类型:

<t:dictSelect field="sex" type="radio" typeGroupCode="sex" hasLabel="false" title="性别" defaultVal="1"></t:dictSelect> 

2.checkbox类型:

<t:dictSelect field="dbtype" type="checkbox" typeGroupCode="dbtype" hasLabel="false" title="数据库类型" defaultVal="oracle,mysql"></t:dictSelect> 

3.数据表字典:

<t:dictSelect field="name" defaultVal="1" dictTable="t_s_base_user" dictCondition="where delete_flag=0" dictField="username" dictText="realname" title="用户"></t:dictSelect> 

4.选择控件:

<input id="roleid" name="roleid" type="hidden" value="" />
<input name="roleName" class="inputxt" value="" id="roleName" readonly="readonly" datatype="*" />
<t:choose hiddenName="roleid" hiddenid="id" url="userController.do?roles" name="roleList" icon="icon-search" title="选择操作标签" textname="roleName" isclear="true" isInit="true"></t:choose>

5.列表转id

 <t:dgCol title="部门"  field="sys_org_code" query="true" queryMode="single" dictionary="t_s_depart,org_code,departname" width="200"></t:dgCol> 
原文地址:https://www.cnblogs.com/xujiating/p/8268427.html