tag in the JSP custom label (combined with Easyui)--jsp

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.