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 <[email protected]> > How can I add a component (submitLink) multiple times? > > like this: > > List<String> categories = Arrays.asList("English", "Japanese", ); > > for (String str : language) > { > form.add(new SubmitLink("Name",str) > { > @Override > public void onSubmit() { ...} > } > } > > and HTML: > # > > > Any ideas? > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/add-a-component-submitLink-multiple-times-tp4649936p4649939.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Pozdrawiam/Best regards Michał Margiel http://www.confitura.pl (dawniej Javarsovia) http://www.linkedin.com/in/MichalMargiel http://www.margiel.eu
