jeeplus 多选框
<sys:checkbox id="businessTransaction" name="businessTransaction" items="${fns:getDictList('business_transaction')}" values="${hotelMain.businessTransaction}" cssClass="i-checks "/>
插入 checkbox.tag
<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/webpage/include/taglib.jsp"%>
<%@ attribute name="id" type="java.lang.String" required="true" description="id"%>
<%@ attribute name="name" type="java.lang.String" required="true" description="name"%>
<%@ attribute name="items" type="java.util.ArrayList" required="true" description="字典对象"%>
<%@ attribute name="values" type="java.lang.String" required="true" description="复选框值"%>
<%@ attribute name="cssClass" type="java.lang.String" required="true" description="复选框值"%>
<c:forEach items="${items}" var="item" varStatus="status">
<label><input name="${name}" type="checkbox" value="${item.value}" <c:if test="${fn:contains(','.concat(values).concat(','), ','.concat(item.value).concat(','))}">checked</c:if> class="${cssClass}"/>${item.label} </label>
</c:forEach>
<input type="hidden" name="${name}" >
<label id="${name}-error" class="error" for="${name}" style="display: none;"></label>
本人开发小白,所写随笔有转发、有心得、随笔、所见问题、或者感觉不错的东西,希望能帮助他人,同时也相当给自己方便!(未来及标明出处,望原作者以及读者见谅海涵!一切为了能解决问题。。。。)