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<boolean> while CheckGroup/Check can be used to populate a collection with arbitrary items. eg Check uses IModel<T> while CheckGroup uses IModel<Collection<T>> each has its own usecase space, and the two spaces do not really overlap -igor On Thu, Oct 23, 2008 at 11:16 PM, Minto van der Sluis <[EMAIL PROTECTED]> wrote: > > 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 > > > igor.vaynberg wrote: >> >> 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's not very clean what the difference is, since they are both >>> attached to the same markup: >>> >>> <input type="checkbox" ... > >>> >>> Can anyone enlighten me ? >>> >>> regards, >>> >>> Minto van der Sluis >>> -- >>> View this message in context: >>> http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20125256.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20144821.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
