Joost, How did you add a row for the totals while keeping that row
from being sortable?
I don't want to add it outside of the grid's table structure, because
I want the columns to align.  I did this in T4 using code like this:

<span jwcid="tableView">
<table class="reportdata">

        <tr>
                <span jwcid="@Contrib:TableColumns" class="literal:title" />
        </tr>
        <tr class="DataTotalsRow">
        <span jwcid="[EMAIL PROTECTED]" source = "ognl:AggregateList"
value = "ognl:aggindex">
        <td align="right" jwcid="@Any" title="ognl:aggindex.getToolTip()" >
            <span  jwcid="@Insert"
value="ognl:aggindex.getValue()">value</span>
        </td>
        </span>
        </tr>
        <tr jwcid="[EMAIL PROTECTED]:TableRows" class="ognl:beans.evenOdd.next">
                <td align="right" jwcid="@Contrib:TableValues" />
        </tr>

</table>
<span jwcid="[EMAIL PROTECTED]:TablePages" /> </span>


Perhaps I will need to "break open" Grid to get the same effect.


As for your more specific issue, I am guessing you need to tap into
the pager model to determine what indicies in your list are being
displayed.  Maybe there is a way to implement your own pager that
exposes the indice range that it will display, and then when rendering
your totals row, you can tap back into your model and do calculations
based on those indicies only.

On 7/6/07, Joost Schouten <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just started to use tapestry and enjoy the ease of use. We use T5 and I am
> currently developing some pages showing statistics information. I would like
> to have a totals row at the bottom showing the sum of the columns shown. I
> can easily add a row showing the totals for the whole table, but taking the
> paginator into account makes it a bit more difficult.
>
> Is this feature available, or has anyone done this before?
>
> Thanks,
> Joost
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to