Jeremy Thomerson wrote:
I, too, agree that this may not be the best way of doing things.  But,
anyway, there is a solution that will work:

Use ValidationError rather than just a string

            public void updateModel() {
                try {
                    super.updateModel();
                } catch(Exception ex) {
                    ValidationError error = new ValidationError();
                    error.setMessage(ex.getMessage());
                    /* or you could do this:
                     * error.addMessageKey("MaximumValidator");
                     * error.setVariable("maximum", 1);
                     */
                    error((IValidationError) error);
why the cast? ValidationError implements IValidationError right?
                }
            }




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to