Wicket dummy form field?

This should do it: PasswordTextField pass2 = new PasswordTextField("password2", Model. Of("")); Explanation: CompoundPropertyModel associates nested form elements with the parent model (component name foo is mapped to the bean. Foo property of the parent model).

You can overwrite this behavior by assigning a different model to the child component.

I would have used a property in the form and a PropertyModel. This way I would have access to the field throught the getPassword2() method. Public class RegisterForm extends Form { private static final long serialVersionUID = -9071906666130179515L; // password2 Property protected String password2 = ""; public String getPassword2() { return password2; } public void setPassword2(String password2) { this.

Password2 = password2; } // end password2 Property public RegisterForm(String id) { super(id, new CompoundPropertyModel(new User())); PasswordTextField pass = new PasswordTextField("password"); pass. SetType(String. Class); // add new PropertyModel PasswordTextField pass2 = new PasswordTextField("password2", new PropertyModel(this, "password2")); add(new EqualPasswordInputValidator(pass, pass2)); add(new TextField("login") .

SetType(String. Class) . SetRequired(true) .

Add(new PatternValidator("a-z0-9*"))); add(new TextField("email") . SetType(String. Class) .

Add(EmailAddressValidator.getInstance())); add(pass); add(pass2); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions