wiflish
          Loving Life! Loving Coding!
          posts - 98,comments - 98,trackbacks - 0
          1、直接使用column的format屬性,進行格式化輸出。

          You can use any valid java.text.MessageFormat pattern in the format attribute. Sorting will be based on the original object, not on the formatted String.

          Note that errors due to an invalid pattern/object combination (for example trying to format a String like a number) will not be rethrown. Instead, an error log will be written and the original unformatted object displayed.

          You can also use a format pattern along with column decorators (the pattern will be applied after the decoration).

          ??<display:table?name="test">
          ????
          <display:column?property="id"?title="ID"?/>
          ????
          <display:column?property="email"?format="email?is?{0}"?/>
          ????
          <display:column?property="date"?format="{0,date,dd-MM-yyyy}"?sortable="true"/>
          ????
          <display:column?property="money"?format="{0,number,0,000.00}?$"?sortable="true"/>
          ??
          </display:table>

          posted on 2007-04-13 15:26 想飛的魚 閱讀(1006) 評論(0)  編輯  收藏 所屬分類: web
          主站蜘蛛池模板: 肥西县| 清河县| 易门县| 炉霍县| 宜川县| 西林县| 乡宁县| 清远市| 澄江县| 长兴县| 资溪县| 望江县| 乐安县| 赤城县| 凤凰县| 新兴县| 高邮市| 安仁县| 河北区| 连云港市| 嘉定区| 宁津县| 阿鲁科尔沁旗| 祥云县| 蒙阴县| 隆化县| 拉孜县| 南岸区| 新干县| 白水县| 新郑市| 双辽市| 景东| 和平区| 兴化市| 甘泉县| 密云县| 绩溪县| 河南省| 屯昌县| 长顺县|