<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
    主站蜘蛛池模板: 曰批全过程免费视频在线观看| 亚洲最新中文字幕| 久久综合久久综合亚洲| 亚州免费一级毛片| 亚洲视频一区在线播放| 最近2019年免费中文字幕高清| 亚洲午夜视频在线观看| 国产偷伦视频免费观看| 久久久久久a亚洲欧洲AV| 久久精品国产这里是免费| 亚洲国产精品高清久久久| a级毛片免费高清毛片视频| 亚洲精品午夜无码电影网| 青青草原1769久久免费播放| 在线观看亚洲AV日韩A∨| 狠狠久久永久免费观看| 日韩色日韩视频亚洲网站| 亚洲高清偷拍一区二区三区| 久99久无码精品视频免费播放| 国产亚洲成人在线播放va| 理论片在线观看免费| 在线a亚洲v天堂网2019无码| 美女视频黄a视频全免费网站色窝| 国产成人亚洲合集青青草原精品| 天天看片天天爽_免费播放| 国产成人亚洲综合a∨| 亚洲日韩国产精品第一页一区| 99国产精品免费视频观看| 亚洲乱码一二三四区乱码| 久久九九亚洲精品| 亚洲不卡无码av中文字幕| 24小时日本在线www免费的| 暖暖免费中文在线日本| 亚洲第一精品在线视频| 亚洲国产成人精品无码久久久久久综合| 亚洲免费在线观看视频| 东方aⅴ免费观看久久av| 一区二区亚洲精品精华液| 亚洲一级二级三级不卡| 国产免费午夜a无码v视频| 久久久久久成人毛片免费看|