Re: Problem: Check within a ListView

2008-06-22 Thread Timo Rantalaiho
On Sat, 21 Jun 2008, Kai Mütz wrote: > I have no idea how to implement such a model. Do you have any hint? I am not > sure where/when exactly the IModel.getObject() method is called and where > the missing values can be inserted. Something like this, I'm not sure if I got your requirements right

Re: Problem: Check within a ListView

2008-06-21 Thread Kai Mütz
I have no idea how to implement such a model. Do you have any hint? I am not sure where/when exactly the IModel.getObject() method is called and where the missing values can be inserted. Regards, Kai 2008/6/5 Igor Vaynberg <[EMAIL PROTECTED]>: > right, so like that its not going to work. you nee

Re: Problem: Check within a ListView

2008-06-05 Thread Igor Vaynberg
right, so like that its not going to work. you need a model in between that can buffer values and insert missing checked by disabled values. -igor On Thu, Jun 5, 2008 at 4:36 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg wrote: >> it is possible, just depends

RE: Problem: Check within a ListView

2008-06-05 Thread Kai Mütz
Igor Vaynberg wrote: > it is possible, just depends on how you set up your models. it is not > possible by directly reading the collection of checkgroup, but you > can come up with a different way. > The checkgroup is part of a form based on a CompoundPropertyModel wrapp

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
it is possible, just depends on how you set up your models. it is not possible by directly reading the collection of checkgroup, but you can come up with a different way. -igor On Wed, Jun 4, 2008 at 8:29 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg wrote: >>

RE: Problem: Check within a ListView

2008-06-04 Thread Kai Mütz
Igor Vaynberg wrote: > you are not doing anything wrong, that is how things are meant to > work. > So, isn't it possible to add a disabled checkbox to a listview without removing the item from the corresponding collection? Kai -

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
you are not doing anything wrong, that is how things are meant to work. -igor On Wed, Jun 4, 2008 at 2:40 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Hi, > > I have a ListView nested in a CheckGroup which works actually fine. In some > cases I have to disable (or make invisible) a certain Check wit

Problem: Check within a ListView

2008-06-04 Thread Kai Mütz
Hi, I have a ListView nested in a CheckGroup which works actually fine. In some cases I have to disable (or make invisible) a certain Check within the Checkgroup. e.g. CheckGroup roleGroup = new CheckGroup("roles"); add(roleGroup); roleGroup.add(new CheckGroupSelector("selector")); ListView roleL