I create a class Loginpage which extends WebPage,how the IDE show me many
errors when I use wicket 1.4 :
public LoginPage() {
User user = new User();
Form logForm = new Form("form", new CompoundPropertyModel(user)) {
protected void onSubmit() {
}
};
logForm.setMultiPart(true);
logForm.setMaxSize(Bytes.kilobytes(1000));
add(logForm); //////////// Here it says :"The method add(Component[]) in
the type MarkupContainer is not applicable for the arguments (Form)"
TextField accountTextfield = new TextField("account");
logForm.add(accountTextfield); ///////////// here It says:"The method
add(IFormValidator) in the type Form is not applicable for the arguments
(TextField)"
}
Why?
Since I did not got the errors when I use wicket-1.3.
BTW, is the class DatePicker deprecated?