Yes it works.
Thanks.
One more thing:
What about if no path, i.e. if violation for all form
not only one object.
Can I use empty path, or there is correct way?
getForm().addViolations( AddViolation(/, new
Error) );
Thanks a lot.
Hill
--- Andrew Timberlake [EMAIL PROTECTED] wrote:
Hill
Hill
Firstly, the error is in the line
List list = null;
You need to initialise the list to something.
You are calling list.add(... in the following line.
I use the following method:
private List AddViolation(String path, String message)
{
Violation violation = new Violation();
Hi all,
Question about xmlForm:
I want create new Violation and add it to Form.
What I do, here is snatch from my wizard action:
...
public Map perform () {
VendorPhoneCard jBean = (VendorPhoneCard)
getForm().getModel();
if ( ... some validation ... ) {
Violation newViolation