Hi! The only workaround I came up with is as follows: public void validate(Form form) { if (!form.contains(selectionField, true)) { return; } ... }
It is not elegant and the stack keeps growing. I first tried to remove the validator if it exists, but that brought up some nasty threading issues ;) Anybody know if it is a "feature" or a "bug" that the form validator stack keeps piling up those validators after each submit - specifically comes up in double-or-triple-submit-click situations. ** Martin 2008/6/5 Martin Makundi <[EMAIL PROTECTED]>: > Hi! > > I have a Form whose components are populated using a listView. > > Each listView component has a formValidator. > > Now each time I refresh the listview it is redrawn and all the new > validators are newly added to the form in addition to the existing > validators (from the previous refresh). > > For example, the screen has 5 items but when I debug the form I can > see 65 validators hanging out there and giving false alarms ;) > > In my experience I must use listView.removeAll to assure that the > listview is re-rendered. modelChanged does not seem to have the > desirable effect. > > What is the proper pattern to clean the form listview validators? > > ** > Martin > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]