JSP中自定义标签(结合easyui)——JSP中的TAG
2016-06-08 08:50
519 查看
使用了easyui的样式封装的下拉框标签:
参考:http://blog.csdn.net/hongweigg/article/details/12006849 http://zhangxing119.iteye.com/blog/1919548
<%@ 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" style="width:<%=width%>" <%=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
相关文章推荐
- wma tag 批量修改[原代码-从wmfsdk中修改]
- 网站被黑后的处理方法及批量删除恶意代码
- 再谈反向链接,又学了东西
- 大家要经常更新内容啊-针对百度的原创收录速度测试
- jsp 定制标签(Custom Tag)
- DEDECMS TAG伪静态 IIS_rewrite配置方法附rewrite下载
- 个人经验总结:网站被百度“拔毛”如何恢复?
- JSP自定义分页标签TAG全过程
- 网站优化细节之服务器的选择真没见过
- jQuery实现tag便签去重效果的方法
- 3种高效的Tags标签系统数据库设计方案分享
- Javascript让DEDECMS告别手写Tag
- Tag技术的实现思路
- The Introduction Of Input Tag
- 很难找齐的常识
- 喜讯:富士康宣布员工整体薪资水平提升30%以上
- 交换机端口处理过程
- title
- title
- git tag 记忆条