I am trying the sample code from Daoud's Stripes book, where for a Cancel
action in an action bean (page 53!), a SimpleMessage is added to the
ActionBeanContext and RedirectResolution is called.
It works as intended, except when I enter just single numeric character or
some text characters for "BirthDate" field, yes-invalid input, it just does
not redirect to the page intended, nor does it throw exception saying
something wrong with input data. I suspect I am missing something.
The method in action bean is:
//----------- inside ContactFormActionBean
public Resolution cancel() {
getContext().getMessages().add (new SimpleMessage("Action cancelled.");
return new RedirectResolution(ContactListActionBean.class); //THIS DOES NOT
//WORK for
//bad input data
}
Thanks for any pointers.
-Srini
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development