Hi,

StringResourceModel uses Java's MessageFormat for its parameters, so only the {0} syntax is supported.

Use ${dateOfCreation} for Wicket's placeholder replacement - this one uses Wicket's converters instead.

Regards
Sven

On 04/30/2014 11:03 AM, Patrick Davids wrote:
Hi all,
I'm not sure, if I do something wrong, but I never get such a property
working.

Is this way not possible?

Code:
new StringResourceModel("label", this, model);

properties file:
label=${dateOfCreation, date, dd.MM.yy}


This is working...

Code:
new StringResourceModel("label", this, null, new PropertyModel(model,
"dateOfCreation"));

properties file:
label={0, date, dd.MM.yy}

Is there any reason?
Could be a nice feature... I think...

Or am I just doing something wrong?

kind regards
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to