Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wonder-663 ERMODWizardPage doesn't display errors thrown by validationKeys when the nextAction is called #97

Closed
nullterminated opened this issue Dec 27, 2011 · 3 comments
Labels

Comments

@nullterminated
Copy link
Member

Using a rule like

pageConfiguration = 'Foo' && tabKey = 'Bar' => validationKeys = "(validateXY)"

with a ERMODWizard page does not display an error on the Bar tab if validateXY throws a validation exception.

@fbarthez
Copy link
Contributor

fbarthez commented Jul 2, 2012

I think this can be closed, now that you implemented the validation delegate?

The following snippet from my validation delegate's validationFailedWithException method makes the validationKeys approach work:

        // clone the d2wContext
        D2WContext c = ERD2WContext.newContext(d2wContext());
        erv.setContext(c);
        if (!_page.shouldPropagateExceptions()
                && _page.shouldCollectValidationExceptions()
                && c.propertyKey() == null && erv.propertyKey() != null) {
            c.setPropertyKey(erv.propertyKey());
        }

@darkv darkv added the D2W label May 20, 2015
@fbarthez
Copy link
Contributor

I still think the issue can be closed. Just subclass Ramsey's default implementation of the validation delegate and specify your custom delegate via the rules, using "validationDelegateClassName" as the key.

@paulhoadley
Copy link
Contributor

Let's close this. If it turns up again for someone, we can re-visit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants