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

Que dê para usar textos(mensagens) não internacionalizadas na validação fluente: #539

Open
Alexandre1BR opened this issue Jun 14, 2013 · 3 comments

Comments

@Alexandre1BR
Copy link

validator.checking(new Validations() { {
that(!produto.getNome().isEmpty(), "produto.nome", "Nome vazio, favor preenche-lo!");
that(produto.getPreco() > 0, "produto.preco", "Preço inválido - Não pode ser menor ou igual a zero.");
} });

@dtelaroli
Copy link
Contributor

+1

@garcia-jj
Copy link
Member

if we do this, we will break compatibility. Do you have suggestions to avoid this?

May be a class like SimpleValidations that extends Validations?

@dtelaroli
Copy link
Contributor

For me it's good.

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

3 participants