<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
    主站蜘蛛池模板: 日韩精品无码专区免费播放| 伊人久久精品亚洲午夜| 中文字幕免费不卡二区| 国产午夜亚洲精品不卡电影| 亚洲福利电影一区二区?| 亚洲午夜福利717| 亚洲国产成人五月综合网 | 午夜成年女人毛片免费观看| 免费观看91视频| 黄色视屏在线免费播放| 国产成人精品久久亚洲高清不卡| 亚洲欧洲精品视频在线观看| 国产亚洲av片在线观看播放| 亚洲国产精品碰碰| 免费国产高清视频| 日韩一区二区三区免费体验| 一个人看www在线高清免费看 | 亚洲精品动漫人成3d在线 | 亚洲AV香蕉一区区二区三区| 亚洲a级片在线观看| 亚洲欧洲精品视频在线观看| 久久精品亚洲中文字幕无码麻豆| 亚洲乱码中文字幕久久孕妇黑人| 亚洲毛片网址在线观看中文字幕| 亚洲AV伊人久久青青草原 | 黄页网站在线免费观看| 亚洲av无码专区国产不乱码| 亚洲国产午夜精品理论片在线播放| ASS亚洲熟妇毛茸茸PICS| 国产精品久久亚洲不卡动漫| 亚洲人成人网毛片在线播放| 久久亚洲最大成人网4438| 亚洲中文字幕无码中文| 亚洲色少妇熟女11p| 亚洲6080yy久久无码产自国产| 亚洲精品无AMM毛片| 国产精品自拍亚洲| 免费一级毛片在线播放视频免费观看永久 | 亚洲精品国产第1页| 亚洲欧洲日产专区| 久久夜色精品国产噜噜亚洲a|