Re: add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for (String str : language) { form.add(new SubmitLink(Name,str) { @Override public void onSubmit() { ...} } } and HTML: # Any

Re: add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for (String str : language) { form.add(new SubmitLink(Name,str) { @Override public void onSubmit() { ...} } } and HTML: #

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Thomas Götz
I don't know exactly what you are trying to do, but you could have a look at RepeatingView. -Tom On 13.06.2012 at 19:23 oliver.stef wrote: How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Michal Margiel
Hello, No, your code is not correct. You should use some kind of repeaters, like ListView: https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html 2012/6/13 oliver.stef ova...@gmail.com How can I add a component (submitLink) multiple times? like this: ListString categories =

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Martin Grigorov
Hi, Use a repeater like ListView or RepeatingView around them. On Wed, Jun 13, 2012 at 8:23 PM, oliver.stef ova...@gmail.com wrote: How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for (String str : language) {