参数详解
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>