Sure. To explain a bit more why I'm asking: I have a table component that's
configured using property expressions as to what's shown in each column.
The types of objects to be shown in the table are not known in advance,
hence having a hard coded model for a specific type of class isn't really
desirable. Given this, do you think it would make sense to provide an
extended property model, so that it could cope with the type of example of
objects I showed below?
Thanks,
Jan
2008/11/4 Igor Vaynberg <[EMAIL PROTECTED]>
> 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]
>
>