myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Brökelmann <mbroekelm...@googlemail.com>
Subject Re: partially OT / issue with DataTAble
Date Thu, 22 Dec 2005 09:55:43 GMT
jsf datatable is not able to do that automatically.

provide/implement a property which return the calculated sum and put
it into the footer for the amount column. The property can´t be in
your Expense object it should be implemented in the bean which
provides the list of these objects.

2005/12/22, Marco Mistroni <mmistroni@gmail.com>:
> hello all,
>  sorry for this partially off topic question
> i have a dataTable which contains a list of Expense objects. (which has a
> data, name and amount fields)
>
> i would like  to have all rows of my datatable displayed, and at the end the
> sum of the amount field of each row..
> is that possible using dataTAble? or do i need to calculate it myself in my
> Web java code?
>
> thanks in advance and regards
>  marco


--
Mathias

Mime
View raw message