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

closeAllErrors problem #38

Open
trungnn307 opened this issue Jul 22, 2014 · 2 comments
Open

closeAllErrors problem #38

trungnn307 opened this issue Jul 22, 2014 · 2 comments

Comments

@trungnn307
Copy link

function closeAllErrors() cant close ConfirmValidate. You'll get exception

E/AndroidRuntime(27795): java.lang.ClassCastException: >.validator.validate.ConfirmValidate cannot be cast to .validator.Validate

@Exikle
Copy link
Collaborator

Exikle commented Jul 22, 2014

Can you post the code that you are running and anything related as it is working for me. @trungnguyennam

@trungnn307
Copy link
Author

Sorry for very late response. Simply create a ConfirmValidate for 2 edittexts. Make form raise error then call function form.closeAllErrors(). You'll get class cast exception at

public void closeAllErrors() {
    for (AbstractValidate av : mValidates) {
        Validate v = (Validate) av;   //Error here.
        v.getSource().setError(null);
    }
}

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

No branches or pull requests

2 participants