hi, i want to generate components dynamically using java program in wicket.
[code=java] import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.model.PropertyModel; public class CounterExample extends WebPage { private int counter=0; public CounterExample(){ add(new Link("link"){ @Override public void onClick() { if(counter<3){ counter++; //add(new TextField("counter"+counter)); // 1 } System.out.println(counter); // TODO Auto-generated method stub }} ); if(counter<=3){ add(new Label("counter",new PropertyModel(this, "counter"))); } } } [/code] at line no: 1,i want to write a code to generate text field in html. please help me :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-create-a-textfield-dynamically-tp3616289p3616289.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org