I ended up solving this on (sort of).  I had to set preserveDataModel=false
because for some reason it was throwing errors.  I also had to change the
backing bean to session scoped from request in order to actually update the
data model, otherwise it kept getting reset between requests, makes sense. 
The only problem now is that the data set is not refreshed except between
sessions which kind of sucks but  can live with that.

Brian.S wrote:
> 
> I am trying to adapt the myfaces-cars example for working with large
> datasets to my needs.  What I wish to do is allow the user to edit a
> single row of the datatable by clicking an edit button that is in the same
> row as the data fields in the table.  
> 
> Something like this
> 
> http://img.photobucket.com/albums/v294/jammiedodgers/BrianS/AccountsEdit.jpg 
> 
> Anyway, what keeps happening is the DataModel (PageableListDataModel)
> keeps reseting the rowIndex when I click the edit button.  So the
> IsRowAvailable method keeps returning false.  I thought by setting the
> preserveDataModel to true would aleviate this but no.  Anyone familar with
> the myfaces-cars example here
>  http://wiki.apache.org/myfaces/WorkingWithLargeTables
> http://wiki.apache.org/myfaces/WorkingWithLargeTables 
> 
> Please help.
> 
> I am thinking this has something to do with the lifecycle but can't figure
> it out.  
> 

-- 
View this message in context: 
http://www.nabble.com/MyFaces-Cars-example-for-working-with-large-datasets-tf2160973.html#a5991594
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to