Monday, 9 November 2009

Dependency injection in javax.faces.validator.Validator

Using no additional frameworks (Seam for example) it's impossible to @EJB in Validator. Let me know if I am wrong.

My workaround is based on a question, why bother? Just provide a validation method on a managed bean.

1 comment:

  1. One of the reasons I don't use additional frameworks - they are based on the assumption that the specification implementation is not enough. The specification implementation usually evolves to provide enough means to perform a particular task without much incompatible garbage in your code. But most of the times, you don't need an additional framework, especially when you pay close attention to rules.

    ReplyDelete