<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 431,  comments - 344,  trackbacks - 0

    If you want to display a table without the pagination you need to set the max rows to the total rows, and then create a custom view to remove the toolbar. In addition, for this example, lets say that we also want to remove the statusbar? That makes sense as it will not offer any pagination information anyway.

    First we need to set the max rows to the total amount of items that we want to display.

    tableFacade.setMaxRows(items.size());

    Then we need to implement a custom view. If you compare this view to the HtmlView in the API you can see that I just removed two lines of code. One to remove the toolbar and one for the status bar.

    public class CustomView  extends AbstractHtmlView {
       
    public Object render() {
           
    HtmlSnippets snippets = getHtmlSnippets();

           
    HtmlBuilder html = new HtmlBuilder();

            html
    .append(snippets.themeStart());

            html
    .append(snippets.tableStart());

            html
    .append(snippets.theadStart());

            html
    .append(snippets.filter());

            html
    .append(snippets.header());

            html
    .append(snippets.theadEnd());

            html
    .append(snippets.tbodyStart());

            html
    .append(snippets.body());

            html
    .append(snippets.tbodyEnd());

            html
    .append(snippets.footer());

            html
    .append(snippets.tableEnd());

            html
    .append(snippets.themeEnd());

            html
    .append(snippets.initJavascriptLimit());

           
    return html.toString();
       
    }
    }

    Lastly, just plug your custom view into the TableFacade.

    API

    tableFacade.setView(new CustomView());

    Tags

    <jmesa:tableFacade view="com.mycompany.CustomView">
    posted on 2009-03-11 15:15 周銳 閱讀(388) 評論(0)  編輯  收藏 所屬分類: Ajax
    主站蜘蛛池模板: 成人免费看片又大又黄| 亚洲男人天堂av| 亚洲熟妇无码乱子AV电影| 亚洲精品美女在线观看| 亚洲国产精品99久久久久久| 中文字幕av无码不卡免费| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 国产永久免费高清在线| 手机在线毛片免费播放| 亚洲mv国产精品mv日本mv| 国产免费无码一区二区| 亚洲av区一区二区三| 亚洲AV综合色区无码二区偷拍| 69成人免费视频| 久久夜色精品国产亚洲AV动态图| 亚洲AV无码AV日韩AV网站| 国拍在线精品视频免费观看| 亚洲精品无码av人在线观看 | 曰批免费视频播放免费| 国产乱码免费卡1卡二卡3卡| 亚洲一区二区在线视频| 十八禁在线观看视频播放免费| 久久精品国产亚洲av麻| 国产成人无码免费看片软件| 国产在线不卡免费播放| 最新亚洲卡一卡二卡三新区| 久久久精品免费视频| 永久黄网站色视频免费直播| 色九月亚洲综合网| 暖暖免费高清日本中文| 亚洲午夜成人精品无码色欲| 和日本免费不卡在线v| 免费无码婬片aaa直播表情| 国产国拍亚洲精品mv在线观看| 9久热精品免费观看视频| 国产精品亚洲不卡一区二区三区| 大片免费观看92在线视频线视频| 免费一级毛片正在播放| 美女被暴羞羞免费视频| 亚洲国产精品一区二区三区久久| 猫咪免费人成网站在线观看入口 |