使用sys:gridselect标签实现选择框

参数详解

1、url:数据源

2、id:id

3、name:实体类中关联的属性名称(例: name="titleId" )

4、value:用EL表达式取出的id (例: value="${ examContents.id }" )

5、labelName:展示的属性名(例: labelName="contents.title";注意:必须带点. )

6、lableValue:用EL表达式取出的展示的内容(例:labelValue="${ examContents.title }" )

7、title:Grid选择框的标题

8、cssClass:css样式

9、filldL ables:Grid选择框显示的属性标签可以写多个(例如:“章节 | 题目名称” )

10、fieldKeys:Grid选择框显示的属性名-可以写多个(例:"testName | title" )

11、searchLabels:Grid选择框的搜索的属性标签可以多个(例:“章节 | 地址” )

12、searchKeys:Grid选择框的搜索的属性名可以写多个(例:”testName | title“ )

代码示例:

<sys:gridselect 
url="${ctx}/edu/exam/contents/data" 
id="contents" name="titleId" value="${examContents.id}" 
labelName="contents.title" labelValue="${examContents.title}" 
title="选择题目" cssClass="form-control " 
fieldLabels="章节|题目名称" fieldKeys="testName|title" 
searchLabels="章节|题目名称" searchKeys="testName|title" >
</sys:gridselect>

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值