wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jensiator <jens.alen...@megasol.se>
Subject DropDownChoices where Model is different from Data
Date Mon, 03 Nov 2008 10:40:25 GMT

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message