<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无码专区| 午夜在线免费视频 | 亚洲欧美日韩中文二区| 精品福利一区二区三区免费视频| 亚洲高清在线播放| 99久久精品国产免费| 亚洲精品自拍视频| 无码乱肉视频免费大全合集| 亚洲第一成人在线| 黄色成人网站免费无码av| 2017亚洲男人天堂一| 日韩电影免费在线观看视频| 免费VA在线观看无码| 中文字幕精品无码亚洲字| 国产一精品一AV一免费| 亚洲理论在线观看| 免费高清av一区二区三区| 美女啪啪网站又黄又免费| 亚洲国产精品无码久久一区二区 | 无码精品人妻一区二区三区免费 | 亚洲精品美女久久久久9999| 亚欧色视频在线观看免费| 亚洲欧洲无码AV不卡在线| 国产一区二区三区在线免费观看 | 精品国产免费一区二区三区香蕉| 久久精品蜜芽亚洲国产AV| 最近免费中文字幕大全| 十八禁的黄污污免费网站| 久久亚洲AV无码精品色午夜麻| 色se01短视频永久免费| 久久久亚洲精华液精华液精华液 | 最新亚洲卡一卡二卡三新区| 全部免费毛片在线| 嫩草成人永久免费观看| 亚洲色最新高清av网站| 亚洲精品亚洲人成在线观看下载 | 2020因为爱你带字幕免费观看全集| 精品丝袜国产自在线拍亚洲| www.亚洲精品| 色播精品免费小视频|