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
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
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
Label label = new Label(weatherMessage, new AbstractReadOnlyModelString() {
private static final long serialVersionUID = 1L;
@Override
public String getObject() {
if(condition)