Re: StringResourceModel with unknown array parameters

2008-04-19 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-19 Thread i ii
@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 yesterday. I ended up ... I coded this up for your example: MyApp.properties

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 ListString attendees = new ArrayListString();

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 ListString attendees = new ArrayListString(); attendees.add(Attendee 1); attendees.add(Attendee 2);

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 // example list,

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 something

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 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: ... Cool, I just had to do