On Sat, Apr 19, 2008 at 01:00:09PM +0000, 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<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[]{ Arrays.toString(attendees.toArray()) })));
>  
> output:
> All attendees include: [Attendee 1, Attendee 2, Attendee 3]
> 

You might also want to look at Strings.join in Wicket or
StringUtils.join in commons.lang.

jk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to