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, but do not know size of list at all times
> List<String> attendees = new ArrayList<String>();
> attendees.add("Attendee 1");
> attendees.add("Attendee 2");
> attendees.add("Attendee 3");
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]