Re: LoadableDetachableModel for drop-down menu selection

2008-10-28 Thread Igor Vaynberg
ah, i thought that article had the version that supported setobject() as well. anyways it is trivial to implement setobject(identifiable entity) { clazz=entity.getclass(); id=entity.getid(); this.entity=entity; } and now you have an entity model that ddc can call setobject on. -igor On Tue,

Re: LoadableDetachableModel for drop-down menu selection

2008-10-28 Thread Gianni
Thanks Igor, I've already got my entity model LoadableRefDataModel which is similar to your example and I can see how to make use of this when I've actually got the entity object or id. My problem is I'm not clear on how I go about creating the entity model when a value is selected from my

Re: LoadableDetachableModel for drop-down menu selection

2008-10-28 Thread Igor Vaynberg
this should give you an idea http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ -igor On Tue, Oct 28, 2008 at 12:27 PM, Gianni Doe <[EMAIL PROTECTED]> wrote: > I'm starting out with Wicket and following the Wicket In Action examples > through and I'm a bit stuck on how to make use o

LoadableDetachableModel for drop-down menu selection

2008-10-28 Thread Gianni Doe
I'm starting out with Wicket and following the Wicket In Action examples through and I'm a bit stuck on how to make use of a LoadableDetachableModel in a drop-down menu situation. I've got a drop-down menu of countries which is populated from a LoadableDetachableModel, this works perfectly