--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/eB0usXAhgGUJ.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/caelum-vraptor?hl=en.
Abre lá uma issue pra isso:ou manda um pull request ;)mas em todo caso vc pode criar a mensagem no jsp com:O campo <fmt:message key="${error.category}" /> ${error.message}ou o equivalente se vc estiver usando velocity ou freemarker...
2012/5/21 Angelo Albiero Neto <angelo...@gmail.com>
Fala galera, tudo certo?O Vraptor por padrão possui alguns converters para o JodaTime. Quando é atribuído uma string inválida para um LocalDateTime, o Vraptor adiciona um erro de validação. Neste caso ele procura a string "is_not_a_valid_datetime" em suas mensagens internacionalizadas e devolve a mensagem.A mensagem segue o seguinte formato:O campo #{propriedade} #{is_not_a_valid_datetime}O problema é que o meu objeto tem uma propriedade com o nome "end" e não gostaria que a mensagem fosse "O campo end é inválido".Eu quero internacionalizar o nome da propriedade, tendo como resultado "O campo final é inválido".Olhei no código do Vraptor, o responsável pela atribuição do erro de validação no request está na classe VraptorInstantiator e método instantiate(Target<?> target, Parameters parameters). Neste método o vraptor instancia um ValidationMessage simples.O Vraptor não poderia procurar por padrão em seu arquivo de mensagens internacionalizadas o nome dos campos?Dificilmente eu deixaria o nome do campo em uma validação.
--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/eB0usXAhgGUJ.
To post to this group, send email to caelum-vraptor@googlegroups.com.
To unsubscribe from this group, send email to caelum-vraptor+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/_ivQ9c8RMRAJ.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/YsSHjJwBLKAJ.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
To post to this group, send email to caelum-vraptor@googlegroups.com.
To unsubscribe from this group, send email to caelum-vraptor+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/t1n2iV-wm3QJ.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/aZuPm7x6OT8J.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.