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
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,
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
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
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
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)));
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
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: