Re: add Dropdown object to List

2021-09-26 Thread vahid ghasemi
So it's not any option to handle this issue? I have list but it's singleton list :( On Sun, Sep 26, 2021, 6:17 PM Martin Terra wrote: > Choices model should be final and the selection model should be one item > not a list > > > > On Sun, Sep 26, 2021, 17:36 vahid ghasemi > wrote: > > > model

Re: add Dropdown object to List

2021-09-26 Thread Martin Terra
Choices model should be final and the selection model should be one item not a list On Sun, Sep 26, 2021, 17:36 vahid ghasemi wrote: > model class : > class User { > private List someThing; > } > > Page class : > private User user; > Dropdown dd = new Dropdown("DropDownSomeThing", new >

Re: add Dropdown object to List

2021-09-26 Thread Martin Terra
Selection is an object. If you want to transform it to a singleton later it is a separate process. Or you need to build a model that does that, but for PoC purposes I suggest you keep it simple and do by the book without list at receiver. ** Martin su 26. syysk. 2021 klo 21.12 vahid ghasemi

Re: add Dropdown object to List

2021-09-26 Thread vahid ghasemi
model class : class User { private List someThing; } Page class : private User user; Dropdown dd = new Dropdown("DropDownSomeThing", new PropertyModel(user,"someThing", ); and this is my problem. how can I add the drop-down model to the user property which is list, with PropertyModel On