Re: Parameterized Component

2009-12-15 Thread Johan Compagner
; >add(check); > >> >> >add(label); > >> >> >} > >> >> > } > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >>

Re: Parameterized Component

2009-12-15 Thread Juan Carlos Garcia M.
gt;> >> > >> >> > >> >> > Usually, checkModel would be null as the goal would be to use >> >> > compoundPropertyModel on the checkBox..My question is, is it >> possible >> to >> >> > achieve this ? Or should I be disca

Re: Parameterized Component

2009-12-15 Thread Xavier López
Thanks for the replies. CPM has been working fine for me. Although what Martin says is true, I've been reducing that in my CPM's by means of public static final variables on the bean's classes. Just fields with the name of fields (sort of class meta-info). Then using those fields as wicket:id's...

Re: Parameterized Component

2009-12-15 Thread Martin Makundi
> so you where talking about property models in general (not the compound) > > We have a solution for that now No. Property models can use constants or "the new solution". But there is no solution for compound property models, yet. Unless someone knows how to make the compiler chew html wicket:id'

Re: Parameterized Component

2009-12-15 Thread Johan Compagner
so you where talking about property models in general (not the compound) We have a solution for that now On Tue, Dec 15, 2009 at 11:25, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Yes, but it ties your beans to wicket ids. More refactoring and > maintenance work. > > Anyways, i

Re: Parameterized Component

2009-12-15 Thread Martin Makundi
Yes, but it ties your beans to wicket ids. More refactoring and maintenance work. Anyways, if it works for you, use it. my 2cents ** Martin 2009/12/15 Johan Compagner : > why not > it kills a lot of code. > > > On Mon, Dec 14, 2009 at 17:45, Martin Makundi < > martin.maku...@koodaripalvelut.com

Re: Parameterized Component

2009-12-15 Thread Johan Compagner
why not it kills a lot of code. On Mon, Dec 14, 2009 at 17:45, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > I wouldn't use CPM for anything serious anyways... > > my 2cents > > ** > Martin > > 2009/12/14 Xavier López : > > Hi, > > > > In my application I have a number of fields

Re: Parameterized Component

2009-12-14 Thread Martin Makundi
I wouldn't use CPM for anything serious anyways... my 2cents ** Martin 2009/12/14 Xavier López : > Hi, > > In my application I have a number of fields that allow validation, by means > of a validation CheckBox. In order to provide some flexibility for this kind > of validation fields, I'd like t

Parameterized Component

2009-12-14 Thread Xavier López
Hi, In my application I have a number of fields that allow validation, by means of a validation CheckBox. In order to provide some flexibility for this kind of validation fields, I'd like to have them implemented in a Component (i.e. ValidationTickPanel), so that they provide their own markup and