漁人碼頭

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

          DisplayTag1.1用法記錄

          Posted on 2008-02-26 22:06 Fisher 閱讀(392) 評論(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>
          主站蜘蛛池模板: 康乐县| 兰西县| 石阡县| 乌苏市| 许昌县| 广安市| 外汇| 屯留县| 普洱| 武陟县| 东阳市| 萨嘎县| 万宁市| 河北省| 万源市| 长子县| 阳春市| 福海县| 高安市| 社会| 诸暨市| 珠海市| 布尔津县| 沂源县| 黔江区| 阿克苏市| 和顺县| 托克托县| 将乐县| 马关县| 镇原县| 晴隆县| 镇巴县| 绥宁县| 射洪县| 寿宁县| 昌黎县| 边坝县| 邵武市| 朝阳县| 久治县|