dynamically changing setRequired to false
Posted
by
E Shindler
on Stack Overflow
See other posts from Stack Overflow
or by E Shindler
Published on 2011-01-16T11:22:31Z
Indexed on
2011/01/16
12:53 UTC
Read the original article
Hit count: 162
Hi, I'm new to wicket, can someone please tell me how to dynamically setRequired to false. Here is my code:
AjaxButton cancel=new AjaxButton("cancel"){
public void onSubmit(AjaxRequestTarget target, Form form){
passwrd.setRequired(false);
nameField.setRequired(false);
usernameField.setRequired(false);
LecturerPage lecturer=new LecturerPage();
setResponsePage(lecturer);
}
};
addstud.add(cancel);
Tomcat is telling me that my feedback panel is being left unrendered(my ok button makes use of a feedback panel).
Thank you!
© Stack Overflow or respective owner