no you cannot use propertymodel, but you can easily write your own model that calls the method directly.
-igor On Tue, Nov 4, 2008 at 12:52 PM, Jan Stette <[EMAIL PROTECTED]> wrote: > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]