RE: Dynamic Resources, Properties

2010-06-21 Thread Brown, Berlin [GCG-PFS]
To: users@wicket.apache.org Cc: Berlin Brown Subject: SV: Dynamic Resources, Properties add(new Label(weatherMessage, new StringResourceModel(weather.message, this, null))); If you put a property weather.message into the page's properties file then it will load from there (even if you provide

SV: Dynamic Resources, Properties

2010-06-18 Thread Wilhelmsen Tor Iver
add(new Label(weatherMessage, new StringResourceModel(weather.message, this, null))); If you put a property weather.message into the page's properties file then it will load from there (even if you provide a default in the panel's properties file). Is that what you mean? Properties are

Dynamic Resources, Properties

2010-06-17 Thread Brown, Berlin [GCG-PFS]
I want to be able to use the StringResourceModel, but I want to use a property string that is loaded when the page is loaded. Basically, I want to set a dynamic property object? With this code below, how can I do this. public class SomePanel extends BaseContentPanel { private

Re: Dynamic Resources, Properties

2010-06-17 Thread Ernesto Reinaldo Barreiro
Label label = new Label(weatherMessage, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { if(condition)