Hi, Is there a problem in using LoadableDetachableModel<List<YourEntity>> for the DropDownChoice ?
Use this constuctor: public DropDownChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer) On Wed, Aug 28, 2019 at 10:56 PM René Stolle <[email protected]> wrote: > Hello there, > > my domain classes are mostly not serializable. Making use of > LoadableDetachableModels I have no problems execpt of one situtation: I > couldn't find an easy solution to place a list of domain objects in a > DropDownChoice without getting serialization issues. The examples I > found ignore this problem and I have only a pretty complicated work > around. My domain classes have an id of type long (serializeable), which > I use in my solution. This works, but the code confuses me everytime I > have to touch it. > > My question now, how is this done the "wicket way" ? Is there an elegant > solution out there? > > René > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
