Hi, Wicket doesn't prescribe any way for this. You could use Spring, ServiceLoader, OSGi, static factory, ... Anything that makes sense in your application.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 28, 2016 at 8:04 AM, Per Newgro <[email protected]> wrote: > Hello *, > > I'm looking for an elegant solution to determine a component for an entity. > > Example: > There is a person and two sub-types of it - Manager and Sportsman. > The Manager can be listed in a listview by using a ManagerViewItem > and the Sportsman by using a SportsmanViewItem. > > Currently I'm using a factory producing the appropriate viewitems. But > this factory is injected by using spring. > I would like to reduce the coupling to spring within my component classes > (e.g. Page). > > So i'm looking for a "wicket way" to determine which component is required > to list all persons. > > Thanks for your ideas. > Per > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
