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
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
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]
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:
>
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
=
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
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
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