O'Reilly logo

JBoss RichFaces 3.3 by Demetrio Filocamo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Partial update of data iteration components

The simplest way to update a data iteration component (for example, a rich:dataTable) is to re-render the entire table even if just one row was changed.

There is a more powerful way to optimize this process and it is the capability to choose which rows have to be updated during the re-rendering of the list. The good news is that this is a quite simple task and we are going to see it now.

First of all, let's create a rich:dataTable table. We are going to re-use the GroupsListHelper Seam component to get the list of the groups to fill in the table.

Let's create the /view/examples/partialUpdate/partialUpdateExample.xhtml file:

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required