|
From: Jan H. <jh...@sc...> - 2008-01-23 07:24:42
|
Hi Benoit, I've not yet tried to set warnings with the constraint framework. What I can mention is that the framework itself doesn't create the validation messages. It's the RulesValidator that does this after a constraint fails. You can attach more messages by adding a DefaultValidationResultsModel to the one of your formModel and adding/removing messages on that one. So it is possible to have a constraint test it and then adding/removing a warning message, but it's not yet fitted into the current framework. Definitely a good issue to add so we can have a look at this later. At first sight it does bring in a number of changes because we should at some point have a combination of a Severity and a Constraint and not just translate every constraint failure into an Error. Kind Regards, Jan On Tue, 2008-01-22 at 11:20 +0000, Benoit Xhenseval wrote: > Hi All, > > > > First of all, very glad to see so much activity. > > > > Can the “constraint/rule” framework in Spring RC be used to simply > RAISE a warning (rather than stopping the commit on a form, akin of an > error). > > I have the case whereby some values “should” be within a range but > could be outside if the user decides; they should however be warned. > > Using the constraint framework would be good, is it possible? > > > > Many thanks > > > > Benoit. > > > > ------------------------------ > > IMPORTANT NOTICE > > This communication contains information that is considered > confidential and may also be privileged . It is for the exclusive use > of the intended recipient(s). If you are not the intended recipient(s) > please note that any form of distribution, copying or use of this > communication or the information in it is strictly prohibited and may > be unlawful. If you have received this communication in error please > return it to the sender and delete the original. > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Springframework-rcp-dev mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev **** DISCLAIMER **** http://www.schaubroeck.be/maildisclaimer.htm |