i am making an example right now for the examples project.

I stil don't see how you could make a DetachableModel implentation for this...
ok the attach and the deattach do come from that one. But that are just 2 methods that are the same
setObject and getObject d on't make any sense for those because i need:
getDisplayValue(index row) and getRealValue(index row) and some others.


And remember the IIdList is NOT the base model, that every component have, where the selection is stored (the IModel)
And the selection values shouldn't also come from that Base Model because that would clutter the Model implementation greatly.
The AbstractDropDownChoice just does have 2 models.. That is something we can't go around..
One for the selection (IModel), and one for its list.(IIdModel)


If you compare to swing then the IIdLis is a cellrenderer implementation..

I still don't see how you could make a DetachableModel for this because people just need to implement at least 3-4 methods
for a select to be able to get all the values and set the selected object back into the real IModel.


johan

Jonathan Locke wrote:


done with persistence / cookie refactor and thinking about other little things to fix.


i think i'm going to try refactoring IIdList tomorrow into something more like DetachableListModel. is any reason anyone thinks this won't work out? i'm curious why IIdList was the approach and not some kind of DetachableListModel... was it just "oh, didn't think of that" or am i missing something? (you could save me a bunch of time in doing this refactor if there was a good reason why the wicket.model classes didn't appeal for doing this).

thanks,

       jon


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop





------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to