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 想飛的魚 閱讀(1004) 評論(0)  編輯  收藏 所屬分類: web
          主站蜘蛛池模板: 桃江县| 西乡县| 凉城县| 平邑县| 阿克陶县| 平陆县| 安平县| 分宜县| 南江县| 金乡县| 凉山| 祁门县| 湘乡市| 冕宁县| 忻州市| 曲周县| 漳平市| 西畴县| 余庆县| 江达县| 保山市| 澳门| 定远县| 夏津县| 田东县| 纳雍县| 余干县| 崇礼县| 蒲江县| 镇平县| 鄂伦春自治旗| 呼玛县| 印江| 富阳市| 大名县| 开鲁县| 青海省| 大庆市| 峨眉山市| 满城县| 凤台县|