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:
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
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
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
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
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