ExtremeTable支持在properties文件里方便的统一配置丰富的全局属性
在/source/org/extremecomponents/table/core目录找到extremetable.properties文件,把它复制到WEB-INF/classes里面.
在web.xml里面增加
<context-param>
<param-name>extremecomponentsPreferencesLocation</param-name>
<param-value>/extremetable.properties</param-value>
</context-param>
修改属性:
table.locale=zh_CN
<ec:table items="departInfo" width="100%" ><ec:row highlightRow="false" >
<ec:column property="id" title="账户编号" width="10%" />
<ec:column property="sx" title="余额类别" width="10%"/>
<ec:column property="out" title="支出" width="10%"/>
</ec:row>
</ec:table>
departInfo是一个List,里面是Map对象。:column property="id"等是map的key ,输出就是map的value
<ec:columnproperty="xxxType" title="业务类型" viewsAllowed="html,compact"styleClass="ecTableBody" headerClass="ecTableHead"style="width:6%"><logic:equalvalue="0" property="xxxType"name="notaPad">其他</logic:equal>
<logic:equalvalue="1" property="xxxType"name="notaPad">1业务</logic:equal>
<logic:equalvalue="2" property="xxxType"name="notaPad">2业务</logic:equal>
</ec:column>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)