Re: What's the difference between Check and CheckBox

2008-10-24 Thread Minto van der Sluis
Thanx for clearing that up :-) Minto igor.vaynberg wrote: > > ... > CheckBox only works with a imodel > > while CheckGroup/Check can be used to populate a collection with > arbitrary items. eg Check uses IModel while CheckGroup uses > IModel> > ... > -- View this message in context: http:

Re: What's the difference between Check and CheckBox

2008-10-23 Thread Igor Vaynberg
thats because they are not functionally related at all. just because they both represent a checkbox doesnt mean they are functionally equivalent. CheckBox only works with a imodel while CheckGroup/Check can be used to populate a collection with arbitrary items. eg Check uses IModel while CheckGro

Re: What's the difference between Check and CheckBox

2008-10-23 Thread Minto van der Sluis
Hi igor, that's exactly where I discovered the existence of Check ;-) Being an almost complete newby I was surprised by the existence of 2 Classes so closely related. That is functionally related, since as far as I can tell from the javadoc they are not related in any way. regards, Minto igo

Re: What's the difference between Check and CheckBox

2008-10-23 Thread Igor Vaynberg
javadoc is your friend -igor On Wed, Oct 22, 2008 at 11:48 PM, Minto van der Sluis <[EMAIL PROTECTED]> wrote: > > Messing around with unittesting a CheckBox, I discovered Check as well: > >org.apache.wicket.markup.html.form.Check; >org.apache.wicket.markup.html.form.CheckBox; > > To me it

Re: What's the difference between Check and CheckBox

2008-10-23 Thread Michael Sparer
the main difference is that checks belong to a checkgroup (useful in repeaters) and checkbox is convenient when used alone "check" out http://www.wicketstuff.org/wicket13/forminput/ ;-) regards, Michael Minto van der Sluis wrote: > > Messing around with unittesting a CheckBox, I discovered C

What's the difference between Check and CheckBox

2008-10-22 Thread Minto van der Sluis
Messing around with unittesting a CheckBox, I discovered Check as well: org.apache.wicket.markup.html.form.Check; org.apache.wicket.markup.html.form.CheckBox; To me it's not very clean what the difference is, since they are both attached to the same markup: Can anyone enlighten me