漁人碼頭

          天行健,君子以自強(qiáng)不息。地勢坤,君子以厚德載物。
          posts - 12, comments - 16, trackbacks - 0, articles - 43
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          DisplayTag1.1用法記錄

          Posted on 2008-02-26 22:06 Fisher 閱讀(397) 評論(0)  編輯  收藏 所屬分類: 開源組件
          1、直接使用column的format屬性,進(jìn)行格式化輸出。

          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>
          主站蜘蛛池模板: 永德县| 新巴尔虎右旗| 茌平县| 常山县| 开原市| 新和县| 泸溪县| 靖远县| 新巴尔虎左旗| 东至县| 汝城县| 河源市| 万盛区| 江门市| 苍梧县| 双峰县| 汝南县| 莒南县| 抚州市| 赤水市| 通山县| 瓦房店市| 隆尧县| 灵武市| 枣阳市| 镇江市| 临漳县| 师宗县| 云阳县| 永德县| 乌拉特前旗| 如东县| 北流市| 肥乡县| 新昌县| 英山县| 古蔺县| 三台县| 天全县| 林周县| 乡城县|