Hi. 
I have a form model containing a idKey that is supposed to be selected from
a dropdownchoice. Does anyone know if its possible have a complex data type
in the dropdownchoice when the model is only a idKey? The dropdownchoice
wants to set the complex data type in the form model. 
For example in a dropdownconstructor:
public MyDropDown(String pId,PropertyModel<UUID> pModel){
super(pId,new LoadableDetachableModel<MyClass>(){

       protected List<MyClass> load() 
       {
           return requestClasses();
       }

})
setChoiceRenderer(new ChoiceRenderer<Myclass>("displayName", "idKey"));

would It be possible to link the pModel in another model (SpecialModel) to
accomplish this? Like: setModel(new SpecialModel(pModel));

-- 
View this message in context: 
http://www.nabble.com/DropDownChoices-where-Model-is-different-from-Data-tp20300450p20300450.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to