Question / l18n / property substitution / formatting

2014-04-30 Thread Patrick Davids
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,

Re: Question / l18n / property substitution / formatting

2014-04-30 Thread Sven Meier
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

Re: Question / l18n / property substitution / formatting

2014-04-30 Thread Patrick Davids
Hi Sven, Java's MessageFormat Ah, yes, thanx... regards Patrick Am 30.04.2014 11:21, schrieb Sven Meier: 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

setVisible on a WebMarkupContainer during initial page render based on ListChoice value

2014-04-30 Thread Craig L
Hello, new to Wicket so I apologize if this is an easy architecture issue. We are using version 1.4.18. I have a form with a ListChoice using a model to pull data from a db. Based on the selection in the ListChoice I need to hide/show a WebMarkupContainer (wmc) that contains a label and text

Re: setVisible on a WebMarkupContainer during initial page render based on ListChoice value

2014-04-30 Thread Gabriel Landon
Hi, Please read : http://wicket.apache.org/guide/guide/bestpractices.html#bestpractices_5 http://www.mail-archive.com/dev@wicket.apache.org/msg07123.html You can override isVisible() or do the setVisible into the onConfigure() method. Regards, Gabriel. -- View this message in context: