Drop-down box labels using the Easyui style encapsulation:
<%@ 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 "&Nbsp;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" >--Please select--</option><%}for (datadictionarydto dto : List) {%><option value= "<%=dto.getdictdata_value () %>" ><%=dto.getname ()%></ Option><%}%></select><br>
Call Mode:
<%@ taglib prefix= "mx" tagdir= "/web-inf/tags"%> <mx:cb_dic id= "Insresult" name= "Insresult" required= "false" Width= "200px" type= "Insresult" readonly= "readonly= ' true '"/>
Reference: http://blog.csdn.net/hongweigg/article/details/12006849
http://zhangxing119.iteye.com/blog/1919548
This article is from the "Java Program Ape Blog" blog, be sure to keep this source http://chengxuyuan.blog.51cto.com/5789198/1787170
tag in the JSP custom label (combined with Easyui)--jsp