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 ?