wicket new application starts help

2008-07-11 Thread Thilo

i want to add a form with two textfield AND checkbox in my wicket
application. plz help me. thank u
-- 
View this message in context: 
http://www.nabble.com/wicket-new-application-starts-help-tp18397852p18397852.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wicket new application starts help

2008-07-11 Thread Piller Sébastien
Have a look here: http://www.wicket-library.com/wicket-examples/, and 
especially http://www.wicket-library.com/wicket-examples/forminput/


But it may look like this:

HTML
form wicket:id=form
   input wicket:id=f1 type=text /br/
   input wicket:id=f2 type=text /br/
   input wicket:id=chk type=checkbox /
/form

JAVA
String _f1, _f2;
Object _chk;
...

Form form = new Form(form);
add(form);

TextField f1 = new TextField(f1, new PropertyModel(this, _f1));
form.add(f1);

TextField f2 = new TextField(f2, new PropertyModel(this, _f2));
form.add(f2);

CheckBox chk = new CheckBox(chk, new PropertyModel(this, _chk));
form.add(chk);
...

Thilo a écrit :

i want to add a form with two textfield AND checkbox in my wicket
application. plz help me. thank u
  



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