Bugs item #1216752, was opened at 2005-06-07 22:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1216752&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.0.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Igor (ivaynberg)
Assigned to: Nobody/Anonymous (nobody)
Summary: ChoiceList is not reliable when backed by database

Initial Comment:
The current implementation ofChoiceList will fail if it
is backed by the database and the list of choices
changes between rendering and form processing. The
problem is that ChoiceList uses the index of the object
in the list as its id which can change.

I have created a patched ChoiceList that introduces a
few new functions that resolve the object to id and to
display value. By default the patched version works
like the original. Consider making objectToId()
abstract to make the problem more obvious.

Notice that choiceForId() now takes O(n) instead of
O(1) in the patched version.

Thanks,
Igor


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1216752&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to