-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a macro component for doing file uploads, and I want to be able to trigger validation errors if no file is uploaded.
I trigger validation errors using myConstraint.validate(button, value).
How can I close the error dialog once it is opened?
Every time validate is called a new popup is shown. According to http://sourceforge.net/tracker/index.php?func=detail&aid=2970695&group_id=152762&atid=785191 this is supposed to work like this, but as you can see by my comment there this behavior is only applied to non-input fields (that is, input fields can only have one dialog, other fields can have arbitrarily many). Can this be prevented? If I can close the old window somehow that will solve the problem since I can just close it before i call validate again.
Cheers!
Could you test with the latest ZK 5.0.1 version?
In my environment, the two buttons of "Fail on text field" and "Fail on button" did the same result for me.
Asked: 2010-03-26 08:07:07 +0800
Seen: 306 times
Last updated: Apr 08 '10