Hi, I have some inputs in a form, some are required field, they work fine
when I press 'submit' button, however, I also include a cancel button, in
which onclick event my code is like:
add(new Button("cancel"){
public void onClick() {
setResponsePage(new ActivityTypeList());
}
});
But I think it's probably button 'cancel' has attribute type='submit' in
html page, but I can't put reset, so I don't know what to do to avoid the
validation when user press 'cancel' ?
Many thanks,
Ray
--
View this message in context:
http://www.nabble.com/required-field-in-a-form%2C-help-%3A%29-tf4804178.html#a13744215
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]