Hi Ivelin,
thanks again for your provided solution.
Before summing up what I did, please change the code that you provided,
as if
it is used as is you will get a Null Pointer Exception, due to the
following
code:
public void addViolations( List newViolations ) {
if (violations_ == null)
...........
}
Please change to:
if(violations_ != null)
The rest is really easy to do:
In the perform() method of your RegistrationAction just do your customized
validation and then
create a new Violation and send back the actual page again:
Violation v = new Violation();
v.setMessage(errMsg);
v.setPath("/firstName");
violations.add(v);
getForm().addViolations(violations);
return page(getFormView());
Thanks again for your great help,
miHam
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>