<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 周銳 閱讀(387) 評論(0)  編輯  收藏 所屬分類: Ajax
    主站蜘蛛池模板: 青青青国产手机频在线免费观看| 免费一级毛片不卡在线播放| 亚洲av午夜福利精品一区人妖| 国产三级在线免费观看| 亚洲真人日本在线| 无遮挡呻吟娇喘视频免费播放| 免费人成年激情视频在线观看| 美女黄频免费网站| 亚洲国产成人五月综合网 | 亚洲国产精品久久66| 日本卡1卡2卡三卡免费| 亚洲国产精品无码专区影院| 无码精品一区二区三区免费视频| 亚洲精选在线观看| 欧洲乱码伦视频免费| 亚洲精品无AMM毛片| 免费少妇a级毛片| 国产午夜精品理论片免费观看| 亚洲精品tv久久久久久久久| 一级毛片免费观看不卡视频| 亚洲一区二区三区在线观看蜜桃| 男女啪啪永久免费观看网站| 一边摸一边爽一边叫床免费视频| 亚洲大尺度无码专区尤物| 手机在线看永久av片免费| 爱情岛论坛亚洲品质自拍视频网站 | 亚洲中文无韩国r级电影| 人妻无码一区二区三区免费| 亚洲私人无码综合久久网| 亚洲女人被黑人巨大进入| 日韩精品无码免费一区二区三区 | 国产精品高清视亚洲精品| 成人永久免费福利视频网站| 中文字幕免费在线观看动作大片 | 亚洲AV无码一区二区三区性色| 久久久精品国产亚洲成人满18免费网站 | 久久久久亚洲?V成人无码| 亚洲视频免费在线播放| 免费精品国产自产拍在线观看 | 曰批全过程免费视频在线观看| 日韩在线一区二区三区免费视频|