tdelesio wrote: > > > final DropDownChoice downChoice = new DropDownChoice("name", new > CompoundPropertyModel(playerModel), playersModel, new > ChoiceRenderer("username", "id")); > > This would work fine w/o serialization except that the compound expects a > setter with the name of the component from the object that comes from the > backing LDM (playerModel) so it would error. I essentially want it to not > use a setter, instead just store the value itself as the object. > >
BTW...this is the error that is generated when you try and use new CompoundPropertyModel(playerModel) for the backing of the DDC. java.lang.UnsupportedOperationException: Model class ViewPicksPage$1 does not support setObject(Object) at org.apache.wicket.model.AbstractReadOnlyModel.setObject(AbstractReadOnlyModel.java:55) at org.apache.wicket.Component.setDefaultModelObject(Component.java:3052) Tim -- View this message in context: http://www.nabble.com/Defaulting-a-DropDownChoice-tp25508933p25530325.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org