CheckBox component is standalone. It requires that its model object is Boolean.

Check works in conjunction with CheckGroup. The combination is used when you want to select multiple items out of a list. CheckGroup's model object is the Collection that will contain the selection, and Check's model object is the object that will be added to CheckGroup's model object collection.

CheckGroup/Check doesnt support notification listeners

Yes it is strange that we missed the selection changed notifiaction for CheckGroup/Check, i just checked it in. Im not sure how valuable it is for CheckBox though.

-Igor


On 4/6/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

 

Im trying to use some of the functionality of Checkbox but I get an exception :

"wicket.util.string.StringValueConversionException : Boolean value "[EMAIL PROTECTED]" not recognized"

 

I guess this tells me that my model needs either to be true of false as a string, however I would really like to my real model in conjunction with mycheckbox I do also override the wantonselectionchangenotification so that I can override onSelectionChanged aswell.

 

I've tried to change the model to this new model("false"), this works to some extent but I loose the link to my realmodel plus it seems that the checkboxes becomes unaware if they are clicked, I do get the selectionnotification but the checks remains checked or unchecked.

 

So I've also tried to use the check instead this works fine with my code (using my real model), but does not implement the Ionchangelistener or IrequestListener. It seems strange to me that check works but checkbox does not, am I doing something wrong?

 

In addition to the above I populate the checkbox/check in a listview and have a checkgroup as well. Is anything theoretically wrong with this? Do you want to se a sniplet of my code?

 

 

-regards Nino


Reply via email to