I am looking with interest at the wiki entry [1].

The third solution explained suggests that, when using a dataList with
a DataModel source, you can simply put a commandLink, for example an
"Edit" one, without have to worry about passing in some way the
identifier of that row. It is not very clear to me how can this work.

Having just writed a custom DataModel for paging on a large table, I
understood that the setRowIndex and getRowData methods are repeatedly
invoked as needed before the rendering of the table output. Anyone can
explain me how can a call to getRowData() in the action handler for
the "Edit" commandLink find the clicked row in the current DataModel
rowIndex? Who is going to set it?

Thanks in advance
Cosma


[1] http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters

Reply via email to