Re: StringResourceModel with unknown array parameters

2008-04-19 Thread John Krasnay
On Sat, Apr 19, 2008 at 01:00:09PM +, i ii wrote: > > i come up with easy solution. thanks for help: > > .properties > attendees.names=All attendees include: {0} > > webpage > // example list, but do not know size of list at all times > List attendees = new ArrayList(); > attendees.add("At

RE: StringResourceModel with unknown array parameters

2008-04-19 Thread i ii
09:22:12 -0700 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: StringResourceModel with unknown array parameters > > On Fri, Apr 18, 2008 at 8:49 AM, Enrique Rodriguez <[EMAIL PROTECTED]> wrote: > > ... > > Cool, I just had to do something similar y

Re: StringResourceModel with unknown array parameters

2008-04-18 Thread Erik van Oosten
i ii schreef: should be in core, no? -1, it is much too specific. Regards, Erik. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: StringResourceModel with unknown array parameters

2008-04-18 Thread i ii
should be in core, no? > Date: Fri, 18 Apr 2008 09:22:12 -0700 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: StringResourceModel with unknown array parameters > > On Fri, Apr 18, 2008 at 8:49 AM, Enrique Rodriguez <[EMAIL PROTECTED]> wrote: >

Re: StringResourceModel with unknown array parameters

2008-04-18 Thread Enrique Rodriguez
On Fri, Apr 18, 2008 at 8:49 AM, Enrique Rodriguez <[EMAIL PROTECTED]> wrote: > ... > Cool, I just had to do something similar yesterday. I ended up ... I coded this up for your example: MyApp.properties label.attendees=All attendees include: ${attendees} Usage =

Re: StringResourceModel with unknown array parameters

2008-04-18 Thread Enrique Rodriguez
On Fri, Apr 18, 2008 at 5:17 AM, i ii <[EMAIL PROTECTED]> wrote: > ... > add(new Label("attendee-names", new StringResourceModel("attendees.names", > this, null, new Object[]{ attendees }))); > > desired output: > All attendees include: Attendee 1 Attendee 2 Attendee 3 Cool, I just had to do some

Re: StringResourceModel with unknown array parameters

2008-04-18 Thread James Carman
Concat the elements of the "array" yourself before you add it as a parameter? On Fri, Apr 18, 2008 at 8:17 AM, i ii <[EMAIL PROTECTED]> wrote: > > is way to add StringResourceModel with array of unknown size? > > .properties > attendees.names=All attendees include: {0} > > webpage > // examp

StringResourceModel with unknown array parameters

2008-04-18 Thread i ii
is way to add StringResourceModel with array of unknown size? .properties attendees.names=All attendees include: {0} webpage // example list, but do not know size of list at all times List attendees = new ArrayList(); attendees.add("Attendee 1"); attendees.add("Attendee 2"); attendees.add("Atten