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
          主站蜘蛛池模板: 罗平县| 临江市| 长沙县| 濉溪县| 西和县| 灌南县| 黑龙江省| 永州市| 广昌县| 桑植县| 大悟县| 巢湖市| 武平县| 邯郸县| 靖州| 当阳市| 铁力市| 裕民县| 垫江县| 静乐县| 平塘县| 台南市| 谷城县| 黄陵县| 七台河市| 蓬溪县| 墨竹工卡县| 鲁甸县| 阿拉善左旗| 隆昌县| 昌江| 苏尼特左旗| 澄迈县| 双峰县| 蒲江县| 唐河县| 上饶市| 宝应县| 嘉义市| 师宗县| 潢川县|