Re: tag into tag
Hi, On Sat, Sep 25, 2021 at 3:45 PM vahid ghasemi wrote: > Hello > I have a tag and tag inside of it: > > wicket:id="panelName"> > Dashboard > > > > > wicket:id="panelDes">#XRS-45670 > > > my h1 has a Label component. > > how I can add Lable into Label? > You cannot! A Label is a leaf component that cannot have children. Only components which extend from MarkupContainer could have children. You need to change your code to: Dashboard #XRS-45670 WebMarkupContainer panel = new WebMarkupContainer("panel"); add(panel); panel.add(new Label("panelSeparator", )); panel.add(new Label("panelDes", ));
Re: add Dropdown object to List
Hi, On Sun, Sep 26, 2021 at 9:12 PM vahid ghasemi wrote: > So it's not any option to handle this issue? > I have list but it's singleton list :( > You need to use ListMultipleChoice instead of DropDownChoice. > On Sun, Sep 26, 2021, 6:17 PM Martin Terra < > martin.te...@koodaripalvelut.com> > 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 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 Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > > > martin.te...@koodaripalvelut.com> wrote: > > > > > > > Hi! > > > > > > > > Can you paste some code with your exact (generic) variables which > > doesn't > > > > work, it might be easier to figure out from code example than verbal > > > > description? > > > > > > > > ** > > > > Martin > > > > > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi ( > vahidghasemi...@gmail.com) > > > > kirjoitti: > > > > > > > > > Hello guys. > > > > > I have a dropdown and I want to use CompoundPropertyModel OR > > > > PropertyModel. > > > > > the attribute of my model is List and the wicket can't set the > > > > > drop-down model object to List. > > > > > what is your option to handle this? > > > > > > > > > > > > > > >
Re: add Dropdown object to List
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 (vahidghasemi...@gmail.com) kirjoitti: > 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 < > martin.te...@koodaripalvelut.com> > 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 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 Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > > > martin.te...@koodaripalvelut.com> wrote: > > > > > > > Hi! > > > > > > > > Can you paste some code with your exact (generic) variables which > > doesn't > > > > work, it might be easier to figure out from code example than verbal > > > > description? > > > > > > > > ** > > > > Martin > > > > > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi ( > vahidghasemi...@gmail.com) > > > > kirjoitti: > > > > > > > > > Hello guys. > > > > > I have a dropdown and I want to use CompoundPropertyModel OR > > > > PropertyModel. > > > > > the attribute of my model is List and the wicket can't set the > > > > > drop-down model object to List. > > > > > what is your option to handle this? > > > > > > > > > > > > > > >
Re: add Dropdown object to List
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 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 Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > > martin.te...@koodaripalvelut.com> wrote: > > > > > Hi! > > > > > > Can you paste some code with your exact (generic) variables which > doesn't > > > work, it might be easier to figure out from code example than verbal > > > description? > > > > > > ** > > > Martin > > > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi (vahidghasemi...@gmail.com) > > > kirjoitti: > > > > > > > Hello guys. > > > > I have a dropdown and I want to use CompoundPropertyModel OR > > > PropertyModel. > > > > the attribute of my model is List and the wicket can't set the > > > > drop-down model object to List. > > > > what is your option to handle this? > > > > > > > > > >
Re: add Dropdown object to List
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 > 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 Sun, Sep 26, 2021 at 7:31 AM Martin Terra < > martin.te...@koodaripalvelut.com> wrote: > > > Hi! > > > > Can you paste some code with your exact (generic) variables which doesn't > > work, it might be easier to figure out from code example than verbal > > description? > > > > ** > > Martin > > > > la 25. syysk. 2021 klo 19.46 vahid ghasemi (vahidghasemi...@gmail.com) > > kirjoitti: > > > > > Hello guys. > > > I have a dropdown and I want to use CompoundPropertyModel OR > > PropertyModel. > > > the attribute of my model is List and the wicket can't set the > > > drop-down model object to List. > > > what is your option to handle this? > > > > > >
Re: add Dropdown object to List
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 Sun, Sep 26, 2021 at 7:31 AM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > Hi! > > Can you paste some code with your exact (generic) variables which doesn't > work, it might be easier to figure out from code example than verbal > description? > > ** > Martin > > la 25. syysk. 2021 klo 19.46 vahid ghasemi (vahidghasemi...@gmail.com) > kirjoitti: > > > Hello guys. > > I have a dropdown and I want to use CompoundPropertyModel OR > PropertyModel. > > the attribute of my model is List and the wicket can't set the > > drop-down model object to List. > > what is your option to handle this? > > >