2012-02-21 71 views

回答

0

一种方法可以在html\taglib\ui\custom_attribute\创建jsppage.jsp并更换selectcheckbox

<c:choose> 
    <c:when test="<%= type == ExpandoColumnConstants.BOOLEAN %>"> 
     <% Boolean curValue=(Boolean)value; if (curValue==n ull) { curValue=(Boolean)defaultValue; } curValue=P aramUtil.getBoolean(request, "ExpandoAttribute--" + escapedName + "--", curValue); %> 
      <select id="<%= randomNamespace %><%= escapedName %>" name="<portlet:namespace />ExpandoAttribute--<%= escapedName %>--"> 
       <option <%=c urValue ? "selected" : "" %>value="1"> 
        <liferay-ui:message key="true" /> 
       </option> 
       <option <%=! curValue ? "selected" : "" %>value="0"> 
        <liferay-ui:message key="false" /> 
       </option> 
      </select> 
    </c:when> 
</c:choose> 
相关问题