Re: create new Violation: xmlForm

2003-06-03 Thread Hill Karimov
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

Re: create new Violation: xmlForm

2003-06-02 Thread Andrew Timberlake
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();

create new Violation: xmlForm

2003-05-31 Thread Hill Karimov
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