Problem: State Management

I have a DataTable which is populated from a list and has select options.

You can select any no of rows and delete. But once i delete and come back to the same page, it shows the check boxes checked again at the same row positions.

How do i make sure that state is not saved in these situations.

[314 byte] By [Panks.Ta] at [2007-11-26 16:30:30]
# 1
Is it session scoped? If so, just reload the datalist. Also check the CRUD example in the EAR provided here: http://balusc.xs4all.nl/srv/dev-jep-dat.html
BalusCa at 2007-7-8 22:54:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks Balu

Yes it is session scoped.

While deleting i am removing the objects from the list as you pointed out.

As a result, the two selected row are not displayed as well.

Say, row no 14 & 15 are selected and removed.

Now, if come back again to the same page, we get checkboxes checked again against the rows 16 & 17 (earlier ) which have now become 14 & 15.

Is it something to do with state saving mechanism of JSF.

Did you got my problem?

Panks.Ta at 2007-7-8 22:54:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
What is your approach according to selecting the rows? Most ideal will be just a boolean "selected" property in the DTO. Also see the link I provided you here above.
BalusCa at 2007-7-8 22:54:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...