It looks like you need help with the very basics, have a look at Pro
Wicket at Google Books it has all necessary examples fo what you are
doing:

http://books.google.com/books?id=bA8yTZIZQCsC&dq=pro+wicket&printsec=frontcover&source=bl&ots=mmwyOdfFs8&sig=v2m3vxDLQVlesze9iBnnJCacuQA&hl=fi&ei=A28bS9S6LszP-Qaa4ZjJDw&sa=X&oi=book_result&ct=result&resnum=4&ved=0CBsQ6AEwAw#v=onepage&q=&f=false

**
Martin

2009/12/6 maven apache <[email protected]>:
> Hi:
> I have reffered the wicket wiki and the faq but some problem still exist.So
> I ask for help.
> 1) the page jump.
> For example in a user login page, after the submit button are clicked I want
> user jump to success page or error page.
> So how to ?
> In my login page:
> public class LoginPage extends WebPage{
>  ...........
>  add(new LoginForm("loginForm"))
> }
>
> public class LoginForm .........{
> TextField nameText=new TextField("name");
> TextField passText=new TextField("pass");  //how to make a password
> textfield to hind the char user entering?
>                public void onSubmit() {
>                   /// here how to add listener to the submitButton to jump?
>                }
> //   Button submitButton=new Button("submit");   ///// do I need to specify
> a submit button?(make the wicket know that "this is a submit button,when
> clicked,you should do something?)
> add(nameText);
> add(ageText);
> }
>
>
> 2) when to use wicket tag
> That to say if I want to show some message, I can write it in the html or
> create a label in java source.
> Take the above page for example, the textfield can be also defined in the
> html element like:
> <input type="password" value="" />, and the submit button can be <input
> type="submit" ,,,,/>
> What I mean is when to use the wicket and when to use the html element ?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to