漁人碼頭

          天行健,君子以自強(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>
          主站蜘蛛池模板: 舞阳县| 沈丘县| 绵竹市| 嘉黎县| 鱼台县| 祁门县| 凤山县| 阜城县| 屯留县| 库尔勒市| 罗城| 白城市| 自治县| 湖南省| 榆社县| 安西县| 无锡市| 定陶县| 麦盖提县| 乐亭县| 上栗县| 河南省| 木兰县| 靖州| 西乡县| 大埔区| 平利县| 同江市| 航空| 循化| 无为县| 东平县| 潮州市| 工布江达县| 姜堰市| 恩平市| 延边| 长子县| 通化县| 大港区| 日照市|