Re: [Wicket-user] expression to get property

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
I think you need to use reflection for that part or/and implementing your own abstract model. This approach has spared me some trouble earlier on. If you want to I could dig up some examples... regards Nino ywtsang wrote: it is easy to reference the property of a model by using java bean

Re: [Wicket-user] expression to get property

2007-05-08 Thread Johan Compagner
we don't suppor that see PropertyResolver and PropertyResolverTest what kind of evaluations we do support. johan On 5/8/07, ywtsang [EMAIL PROTECTED] wrote: it is easy to reference the property of a model by using java bean notation as: add(new Label(name, new PropertyModel(myModel,

Re: [Wicket-user] expression to get property

2007-05-08 Thread ywtsang
yes, any hint/guide to the problems are very much appreciated Nino Saturnino Martinez Vazquez Wael wrote: I think you need to use reflection for that part or/and implementing your own abstract model. This approach has spared me some trouble earlier on. If you want to I could dig up some

Re: [Wicket-user] expression to get property

2007-05-08 Thread Eelco Hillenius
While it is possible to e.g. build a custom property model that uses say OGNL or such, personally I think you are better off implementing it as an annonymous model, just calling the method with any parameters you want directly. The advantage of such models is that whatever refactoring you plan to

Re: [Wicket-user] expression to get property

2007-05-08 Thread Igor Vaynberg
create your own model that does that. -igor On 5/8/07, ywtsang [EMAIL PROTECTED] wrote: yes, any hint/guide to the problems are very much appreciated Nino Saturnino Martinez Vazquez Wael wrote: I think you need to use reflection for that part or/and implementing your own abstract

Re: [Wicket-user] expression to get property

2007-05-08 Thread Matej Knopp
new Label(name, new Model() { public Object getObject() { return myBean.getName(3); } }); -Matej On 5/8/07, ywtsang [EMAIL PROTECTED] wrote: it is easy to reference the property of a model by using java bean notation as: add(new Label(name, new PropertyModel(myModel, name)));

Re: [Wicket-user] expression to get property

2007-05-08 Thread Johan Compagner
Guys i thought we should slow down! ;) 3 core devs giving the same kind of advice! Now everybody should know really how it shoudl work the next time ;) johan On 5/8/07, Matej Knopp [EMAIL PROTECTED] wrote: new Label(name, new Model() { public Object getObject() { return

[Wicket-user] expression to get property

2007-05-07 Thread ywtsang
it is easy to reference the property of a model by using java bean notation as: add(new Label(name, new PropertyModel(myModel, name))); (get the value of name property from the myModel) what about if I want to insert some parameters in my property getter method? e.g. I have a getter method: