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:
- 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
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
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
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
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