Thank you Dan for the quick response, indeed I meant 1.14.0. I’ll give a try with the application provided.
Regards Nikhil From: Dan Haywood Sent: 22 September 2017 15:27 To: [email protected] Subject: Re: Multi select in many to many relation Hi Nikhil, Yes, multi-select parameters are supported in 1.14.0 onwards (you wrote v1.4, but I'm guessing that was a typo). IIRC, the parameter types needs to be a List<T> rather than a Set<T>, though. There must also be a supporting choicesXxx or autoCompleteXxx for the parameter type. For more info, see [1] For an example, see the kitchensink app [2] HTH Dan [1] http://isis.apache.org/guides/ugfun/ugfun.html#_multi_select_action_parameters [2] https://github.com/isisaddons/isis-app-kitchensink/blob/master/dom/src/main/java/org/isisaddons/app/kitchensink/dom/reference/ReferenceObject.java#L589 On Fri, 22 Sep 2017 at 07:09 Nikhil Dhamapurkar < [email protected]> wrote: > Hi, > > I have created a many to many relation between Practice and Practitioner > using a join table the previous mailing list was useful[1] > > I am not able to create wicket view where one can relate more than one > practitioners with a practice Like a multi select combobox where I can > select the associated practices with a practitioner. > > Currently my Create Practitioner Code has only one Practice and it working: > public Practitioner create( > @ParameterLayout(named="Practice") final Practice practice, > @ParameterLayout(named="Firstname") > @Parameter(optionality = Optionality.MANDATORY) final String firstName, > @ParameterLayout(named="MiddleName") > @Parameter(optionality = Optionality.OPTIONAL) final String middleName, > @ParameterLayout(named="LastName") > @Parameter(optionality = Optionality.OPTIONAL) final String lastName, > ... Other code omitted) > > How Can make the below code work in wicket which allows to associate more > than one practices with Practitioner ? > > public Practitioner create( > @ParameterLayout(named="Practice") final Set<Practice> > practices, > @ParameterLayout(named="Firstname") @Parameter(optionality > = Optionality.MANDATORY) final String firstName, > > I am using isis version 1.4 , improved the simple Object project to get > this work. > > Is multiple selection for entities supported or should I give a view for > the association table to mange the many to many relation ? > > [1] > http://markmail.org/message/645sphqek3lmz5uw#query:+page:1+mid:vrdkbheoh6vaq27w+state:results > > > Regards > Nikhil > >
