RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Roland Huss
Michael Mehrle wrote: Now, if I want to call a method that returns a String instead, like so... add(new Label(greetings, new StringResourceModel(label.allAlbums, this, new Model(getTotalAlbums(; ^^^ ...with my properties file having this entry:

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
- how to pass method call instead of bean Michael Mehrle wrote: One more question - what do you refer to with 'late binding' - I assume the value would be computed 'late' in the process? Please elaborate or send me a pointer. ... Alternatively, I you need late binding put new

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Roland Huss
Michael Mehrle wrote: One more question - what do you refer to with 'late binding' - I assume the value would be computed 'late' in the process? Please elaborate or send me a pointer. ... Alternatively, I you need late binding put new AbstractReadOnlyModel() { public Object

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
Well, the reason why was I didn't know that call existed ;-) Of course I looked at the JavaDoc, but the examples there didn't show this scenario. Thanks a LOT for your reply - this addresses exactly what I'm looking for :-) One more question - what do you refer to with 'late binding' - I assume

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
Didn't see a response - does anyone know how to do this? -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:53 PM To: users@wicket.apache.org Subject: StringResourceModel - how to pass method call instead of bean I actually have a follow

StringResourceModel - how to pass method call instead of bean

2008-02-11 Thread Michael Mehrle
I actually have a follow up question regarding StringResourceModel - the tutorial shows this example, which makes sense: add(new Label(greetings, new StringResourceModel(label.greetings, this, new Model(user; Now, if I want to call a method that returns a String instead, like so... add(new