使用了easyui的样式封装的下拉框标签:
<%@ tag language="java" pageEncoding="utf-8"%> <%@ tag import="com.cseds.common.dic.DicHolder" %> <%@ tag import="com.cseds.common.dic.Dics" %> <%@ tag import="com.cseds.system.dto.DataDictionaryDTO" %> <%@ tag import="java.util.List" %> <%@ attribute name="id" required="true" rtexprvalue="true" %> <%@ attribute name="name" required="true" rtexprvalue="true" %> <%@ attribute name="required" required="false" rtexprvalue="true" %> <%@ attribute name="width" required="false" rtexprvalue="true" %> <%@ attribute name="type" required="true" rtexprvalue="true" %> <%@ attribute name="readonly" required="false" rtexprvalue="true" %> <select class="easyui-validatebox easyui-combobox" <%=readonly %> data-options="editable:false,required:<%=required%>" id="<%=id%>" name="<%=name%>"> <% Dics dics = DicHolder.getDicsByType(type); List<DataDictionaryDTO> list = dics.getAllDicList(); if(required.equals("false")){ %> <option value="-1">--请选择--</option> <% } for(DataDictionaryDTO dto : list) { %> <option value="<%=dto.getDictData_Value() %>"><%=dto.getName()%></option> <% } %> </select> <br>
调用方式:
<%@ taglib prefix="mx" tagdir="/WEB-INF/tags"%> <mx:cb_dic id="insresult" name="insresult" required="false" width="200px" type="INSRESULT" readonly="readonly='true'" />
参考:http://blog.csdn.net/hongweigg/article/details/12006849
http://zhangxing119.iteye.com/blog/1919548
创新互联www.cdcxhl.cn,专业提供香港、美国云服务器,动态BGP最优骨干路由自动选择,持续稳定高效的网络助力业务部署。公司持有工信部办法的idc、isp许可证, 机房独有T级流量清洗系统配攻击溯源,准确进行流量调度,确保服务器高可用性。佳节活动现已开启,新人活动云服务器买多久送多久。
网站题目:JSP中自定义标签(结合easyui)——JSP中的TAG-创新互联
URL标题:https://www.cdcxhl.com/article30/digeso.html
成都网站建设公司_创新互联,为您提供面包屑导航、微信小程序、ChatGPT、域名注册、定制开发、网站设计公司
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联