I have a scenario which we are internally debating as to the best approach to handle it. We have a need for a list of records where the first record in the list can be "voided" (set a bit to true) in order to no longer be valid. Every other item in the list will have been previously voided. All of the items are read-only except for the one that may be voided.
Is it better to have a read-only list of editable items and "disable" the save for items that aren't the most current, or is it better to have a read-only list of read only items that pass the ID of the one to void to a command object that voids the record?
Ex:
ID Name Date Void
4 Can Void 9/1/08 Void(Link)
2 Older 8/25/08 Voided
1 Oldest 7/12/08 Voided
While a Read Only list can contain items which can be edited. I prefer to think of the list itself and the objects in it as Read Only.
So I vote for #2 - keep the ROC as purely read only and pass the value of the one to be invalidated to a command object.
Joe
Copyright (c) Marimer LLC