You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Zilvinas Vilutis <ci...@gmail.com> on 2010/05/14 18:22:04 UTC
Check and CheckGroup
Hi all,
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: cikasfm@gmail.com
Re: Check and CheckGroup
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Have you looked at the examples? http://wicketstuff.org/wicket/forminput/
--
Jeremy Thomerson
http://www.wickettraining.com
On Fri, May 14, 2010 at 11:22 AM, Zilvinas Vilutis <ci...@gmail.com>wrote:
> Hi all,
>
> 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: cikasfm@gmail.com
>
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
I wasn't aware, that anyone can register to ASF JIRA
Done: https://issues.apache.org/jira/browse/WICKET-2873
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Sun, May 16, 2010 at 12:32 AM, Igor Vaynberg <ig...@gmail.com>wrote:
> the jira is open to everyone, please create the ticket yourself.
>
> -igor
>
> On Fri, May 14, 2010 at 11:13 AM, Zilvinas Vilutis <ci...@gmail.com>
> wrote:
> > Overall - the Javadoc does not explain how it supposed to be used, please
> > create a ticket for that.
> >
> > Thank you
> >
> > Žilvinas Vilutis
> >
> > Mobile: (+370) 652 38353
> > E-mail: cikasfm@gmail.com
> >
> >
> > On Fri, May 14, 2010 at 10:06 AM, Jeremy Thomerson <
> > jeremy@wickettraining.com> wrote:
> >
> >> or an ajaxsubmitlink
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis <cikasfm@gmail.com
> >wrote:
> >>
> >>> The problem was that I was trying to get those values inside onClick
> >>> method
> >>> of an AjaxLink, but did not submit the form.
> >>>
> >>> I've switched the link to a button and its clear now.
> >>>
> >>>
> >>> Žilvinas Vilutis
> >>>
> >>> Mobile: (+370) 652 38353
> >>> E-mail: cikasfm@gmail.com
> >>>
> >>>
> >>> On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis <ci...@gmail.com>
> >>> wrote:
> >>>
> >>> > Ok, I got it, the list contains only selected items after form submit
> :)
> >>> >
> >>> >
> >>> > Thank you!
> >>> >
> >>> > Žilvinas Vilutis
> >>> >
> >>> > Mobile: (+370) 652 38353
> >>> > E-mail: cikasfm@gmail.com
> >>> >
> >>> >
> >>> > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <cikasfm@gmail.com
> >>> >wrote:
> >>> >
> >>> >> 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: cikasfm@gmail.com
> >>> >>
> >>> >>
> >>> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com>
> >>> 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 <mi...@rivulet.ca>
> >>> >>>
> >>> >>> > 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: cikasfm@gmail.com
> >>> >>> >>
> >>> >>> >>
> >>> >>> >>
> >>> >>> >
> >>> >>> >
> >>> >>> >
> >>> ---------------------------------------------------------------------
> >>> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> >>> > For additional commands, e-mail: users-help@wicket.apache.org
> >>> >>> >
> >>> >>> >
> >>> >>>
> >>> >>>
> >>> >>> --
> >>> >>> "Klein bottle for rent--inquire within."
> >>> >>>
> >>> >>
> >>> >>
> >>> >
> >>>
> >>
> >>
> >
>
Re: Check and CheckGroup
Posted by Igor Vaynberg <ig...@gmail.com>.
the jira is open to everyone, please create the ticket yourself.
-igor
On Fri, May 14, 2010 at 11:13 AM, Zilvinas Vilutis <ci...@gmail.com> wrote:
> Overall - the Javadoc does not explain how it supposed to be used, please
> create a ticket for that.
>
> Thank you
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: cikasfm@gmail.com
>
>
> On Fri, May 14, 2010 at 10:06 AM, Jeremy Thomerson <
> jeremy@wickettraining.com> wrote:
>
>> or an ajaxsubmitlink
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis <ci...@gmail.com>wrote:
>>
>>> The problem was that I was trying to get those values inside onClick
>>> method
>>> of an AjaxLink, but did not submit the form.
>>>
>>> I've switched the link to a button and its clear now.
>>>
>>>
>>> Žilvinas Vilutis
>>>
>>> Mobile: (+370) 652 38353
>>> E-mail: cikasfm@gmail.com
>>>
>>>
>>> On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis <ci...@gmail.com>
>>> wrote:
>>>
>>> > Ok, I got it, the list contains only selected items after form submit :)
>>> >
>>> >
>>> > Thank you!
>>> >
>>> > Žilvinas Vilutis
>>> >
>>> > Mobile: (+370) 652 38353
>>> > E-mail: cikasfm@gmail.com
>>> >
>>> >
>>> > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <cikasfm@gmail.com
>>> >wrote:
>>> >
>>> >> 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: cikasfm@gmail.com
>>> >>
>>> >>
>>> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com>
>>> 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 <mi...@rivulet.ca>
>>> >>>
>>> >>> > 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: cikasfm@gmail.com
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>> >
>>> >>> >
>>> >>> >
>>> ---------------------------------------------------------------------
>>> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> >>> > For additional commands, e-mail: users-help@wicket.apache.org
>>> >>> >
>>> >>> >
>>> >>>
>>> >>>
>>> >>> --
>>> >>> "Klein bottle for rent--inquire within."
>>> >>>
>>> >>
>>> >>
>>> >
>>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
Overall - the Javadoc does not explain how it supposed to be used, please
create a ticket for that.
Thank you
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Fri, May 14, 2010 at 10:06 AM, Jeremy Thomerson <
jeremy@wickettraining.com> wrote:
> or an ajaxsubmitlink
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis <ci...@gmail.com>wrote:
>
>> The problem was that I was trying to get those values inside onClick
>> method
>> of an AjaxLink, but did not submit the form.
>>
>> I've switched the link to a button and its clear now.
>>
>>
>> Žilvinas Vilutis
>>
>> Mobile: (+370) 652 38353
>> E-mail: cikasfm@gmail.com
>>
>>
>> On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis <ci...@gmail.com>
>> wrote:
>>
>> > Ok, I got it, the list contains only selected items after form submit :)
>> >
>> >
>> > Thank you!
>> >
>> > Žilvinas Vilutis
>> >
>> > Mobile: (+370) 652 38353
>> > E-mail: cikasfm@gmail.com
>> >
>> >
>> > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <cikasfm@gmail.com
>> >wrote:
>> >
>> >> 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: cikasfm@gmail.com
>> >>
>> >>
>> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com>
>> 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 <mi...@rivulet.ca>
>> >>>
>> >>> > 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: cikasfm@gmail.com
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >
>> >>> >
>> >>> >
>> ---------------------------------------------------------------------
>> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>> --
>> >>> "Klein bottle for rent--inquire within."
>> >>>
>> >>
>> >>
>> >
>>
>
>
Re: Check and CheckGroup
Posted by Jeremy Thomerson <je...@wickettraining.com>.
or an ajaxsubmitlink
--
Jeremy Thomerson
http://www.wickettraining.com
On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis <ci...@gmail.com>wrote:
> The problem was that I was trying to get those values inside onClick method
> of an AjaxLink, but did not submit the form.
>
> I've switched the link to a button and its clear now.
>
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: cikasfm@gmail.com
>
>
> On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis <ci...@gmail.com>
> wrote:
>
> > Ok, I got it, the list contains only selected items after form submit :)
> >
> >
> > Thank you!
> >
> > Žilvinas Vilutis
> >
> > Mobile: (+370) 652 38353
> > E-mail: cikasfm@gmail.com
> >
> >
> > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <cikasfm@gmail.com
> >wrote:
> >
> >> 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: cikasfm@gmail.com
> >>
> >>
> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com>
> 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 <mi...@rivulet.ca>
> >>>
> >>> > 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: cikasfm@gmail.com
> >>> >>
> >>> >>
> >>> >>
> >>> >
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> > For additional commands, e-mail: users-help@wicket.apache.org
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> "Klein bottle for rent--inquire within."
> >>>
> >>
> >>
> >
>
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
The problem was that I was trying to get those values inside onClick method
of an AjaxLink, but did not submit the form.
I've switched the link to a button and its clear now.
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis <ci...@gmail.com> wrote:
> Ok, I got it, the list contains only selected items after form submit :)
>
>
> Thank you!
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: cikasfm@gmail.com
>
>
> On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <ci...@gmail.com>wrote:
>
>> 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: cikasfm@gmail.com
>>
>>
>> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com> 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 <mi...@rivulet.ca>
>>>
>>> > 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: cikasfm@gmail.com
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> > For additional commands, e-mail: users-help@wicket.apache.org
>>> >
>>> >
>>>
>>>
>>> --
>>> "Klein bottle for rent--inquire within."
>>>
>>
>>
>
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
Ok, I got it, the list contains only selected items after form submit :)
Thank you!
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis <ci...@gmail.com> wrote:
> 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: cikasfm@gmail.com
>
>
> On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com> 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 <mi...@rivulet.ca>
>>
>> > 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: cikasfm@gmail.com
>> >>
>> >>
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>>
>> --
>> "Klein bottle for rent--inquire within."
>>
>
>
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
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: cikasfm@gmail.com
On Fri, May 14, 2010 at 9:37 AM, Xavier López <xa...@gmail.com> 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 <mi...@rivulet.ca>
>
> > 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: cikasfm@gmail.com
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> "Klein bottle for rent--inquire within."
>
Re: Check and CheckGroup
Posted by Xavier López <xa...@gmail.com>.
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 <mi...@rivulet.ca>
> 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: cikasfm@gmail.com
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
"Klein bottle for rent--inquire within."
Re: Check and CheckGroup
Posted by Zilvinas Vilutis <ci...@gmail.com>.
Thanks for quick response!
We'll try soon ;)
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Fri, May 14, 2010 at 9:33 AM, Michael O'Cleirigh <
michael.ocleirigh@rivulet.ca> wrote:
> 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: cikasfm@gmail.com
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Check and CheckGroup
Posted by Michael O'Cleirigh <mi...@rivulet.ca>.
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: cikasfm@gmail.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org