No, I've got a list http://pastebin.com/KwZq49uG
So I add all the items to a collection which is used as a model object for CG, and each of the items to each check. When I call selectedImages.getModelObject() - I get the same list which contains all the items. Still don't get how to resolve a list of only selected items. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: [email protected] On Fri, May 14, 2010 at 9:37 AM, Xavier López <[email protected]> wrote: > If you hava a single checkbox, and only want to know if it's selected, I'd > use a Checkbox component instead. You can put it a Boolean Model > initialized > to whatever and it will come back with the boolean value that will tell you > if it's selected. > > Cheers, > Xavier > > 2010/5/14 Michael O'Cleirigh <[email protected]> > > > Hi Zilvinas, > > > > The Model for a CheckGroup is a Collection<T>; I looked in > > Check.onComponentTag(...) in Eclipse and it shows that it emits the > > "checked" tag if the model object of the Check is contained in the > > CheckGroup's collection. > > > > But you should only really need to use the Collection<T> returned from > the > > CheckGroup as it contains the list of selected items. > > > > Regards, > > > > Mike > > > > Can anyone explain me how do I determine whether the checkbox is > >> "checked"? > >> Is the "modelObject" null if not or what? Don't understand that and > >> javadoc's don't help :) > >> > >> What does the list in the CheckGroup model do? what does model in Check > >> do? > >> does the item in the check model require to be inside the CheckGroup > list? > >> > >> Thank you :) > >> > >> Žilvinas Vilutis > >> > >> Mobile: (+370) 652 38353 > >> E-mail: [email protected] > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > "Klein bottle for rent--inquire within." >
