Hi all,
if I have a class like this:
class SomeClass {
String getValue(String key);
}
...is there a way I can use a property expression to get values out of this
class? E.g. using an expression like "value[myKey]".
In other words, something very similar to if the class looked like this:
class SomeClass {
Map<String, String> getValues();
}
(of course, the expression would be "values[myKey]" in this case)
Unfortunately, in this instance the class isn't one that I can change. So,
is the former example possible with the property expressions that come with
Wicket? If not, what is the easiest way to extend these to do what I want -
overriding AbstractPropertyModel.getObject()?
Regards,
Jan