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 想飛的魚 閱讀(998) 評論(0)  編輯  收藏 所屬分類: web
          主站蜘蛛池模板: 于都县| 保山市| 仁怀市| 东兰县| 平塘县| 石狮市| 莱阳市| 五指山市| 渭源县| 高雄县| 西乡县| 大竹县| 巧家县| 海南省| 大同县| 霍城县| 丰顺县| 怀仁县| 天祝| 清远市| 家居| 苍梧县| 吕梁市| 白河县| 徐州市| 咸丰县| 固原市| 济宁市| 甘洛县| 鄂托克前旗| 仪陇县| 乌苏市| 南宫市| 宿迁市| 黑河市| 綦江县| 南溪县| 项城市| 陵川县| 玉溪市| 鄂州市|