This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes [JSF 2] Update the total of a column from a dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[JSF 2] Update the total of a column from a dataTable" Watch "[JSF 2] Update the total of a column from a dataTable" New topic
Author

[JSF 2] Update the total of a column from a dataTable

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Hi,
i am using JSF 2.
I would like to update a field which is outside a dataTable and is the sum of a column from a dataTable.
The fields of this column are editable, so the user can change the quantities.
Then he clicks on a button and it should update the total.

I have been thinking about working with the DataModel of the list i use to populate that dataTable but i am still trying to find out what the DataModel can do for me in that case.
I am new with the DataModel class.

Any suggestion ?
Thanks.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [JSF 2] Update the total of a column from a dataTable