aspose file tools*
The moose likes JSF and the fly likes DataGrid: update cell without refreshing page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "DataGrid: update cell without refreshing page" Watch "DataGrid: update cell without refreshing page" New topic

DataGrid: update cell without refreshing page

Henrik Iversen

Joined: Apr 28, 2005
Posts: 1
I have created a datagrid from a javabean, and it works great. My only problem is that I need to change values in specific cells without refreshing the page.

How do I get a reference to an object that represents a row in the grid, so that I can call the setxxxxx() method?

When I have done this, how do I refresh that partikular cell?

As far as I can read on the web, I have to refresh all the cells in the grid. Does anyone know a way to refresh a specific cell???

Josh Juneau
Ranch Hand

Joined: Jun 16, 2004
Posts: 86
I have used the method of invoking an "onchange" javascript function which passes values to an applet to perform the save. I believe that in order to submit any values from a datatable (or any other component) without performing a client-server round trip, you will need to do something similar.

Hope this helps...


Database Administrator/Application Developer
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286


When dealing with JSF components, you almost always just need to make the trip to the server. Javascript is messy especially when mixed with JSF. The only option I can think of is AJAX (XMLHttpRequest). Getting that to work with JSF is a challenge though.

GenRocket - A Test Data Generation Platform
I agree. Here's the link:
subject: DataGrid: update cell without refreshing page
Similar Threads
Refreshing Tag Library using AJAX
Auto Refresh For Table Cells
how to refresh captcha image
Retrieving list of values from select box using javascript
use body onload refresh functionality only once