Re: radiobuttons in DataView column

2012-06-17 Thread Sven Meier
Hi, if you want to have one Radio preselected, you should have the corresponding model object in the model of the radio group. Sven On 06/17/2012 06:48 AM, Dan12321 wrote: Thanks. I look at this, I try my code little chage, but it still doesn't work and I cannot see what is wrong in my

Wicket checkbox problem

2012-06-17 Thread xe0nre
Hi , I have problem getting the value from a check box. I have something like this: check = new CheckBox(check, Model.of(Boolean.TRUE)); add(check); AjaxLink link = new AjaxLink(link) { @Override public void onClick(AjaxRequestTarget target) { Boolean x =

Re: Wicket checkbox problem

2012-06-17 Thread Josh Kamau
Try a dynamic model Boolean value ; check = new CheckBox(check, new ModelBoolean(){ public void setObject(Boolean object){ value=object} public Boolean getObject(){return value} }); //YOu may want to add an ajax onchange behaviour to the checkbox if you want to value to be