【问题标题】:Struts2 custom display:tagStruts2 自定义显示:标签
【发布时间】:2013-07-11 12:26:53
【问题描述】:

我在我的 JSP 页面中使用了 display:table 来显示来自 Struts2 Action 类的数据

<display:table name="Clients" class="table table-condensed table-hover" requestURI="" id="ClientList" export="true" pagesize="5">
        <display:column property="clientKey" sortable="true" href="editMClient" media="html"
            paramId="clientKey" paramProperty="clientKey" titleKey="mClient.clientKey"/>
        <display:column property="clientKey" media="csv excel xml pdf" titleKey="mClient.clientKey"/>
        <display:column property="MClientcol" sortable="true" titleKey="mClient.MClientcol"/>
        <display:column property="clientName" sortable="true" titleKey="mClient.clientName"/>

    <%--Many columns --%>

 </display:table>

我得到这样的输出。

我想改变风格。我的意思是,我不想显示页码,我只想显示上一个和下一个,图像也一样(如在 GMail 中)。

在页面中,我将页面大小设置为 5。我想显示一个显示 10、20、30 个选项的选择框,以便当用户选择一个数字时,页面上会显示该行数。 (就像在 JQGrid 中一样,但我想使用 display:table)。

我也不想显示 XML 的导出链接。

我怎样才能实现这些?

【问题讨论】:

    标签: jsp struts2 displaytag


    【解决方案1】:

    查看配置文件displaytag.properties。您可以设置paging.banner.full 和其他人(paging.banner.*)如何显示页面。 http://www.displaytag.org/10/configuration.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多