CDI Injection into a FacesConverter

Replace @FacesConverter(value = “categoryConverter”) by @Named and use <h:inputSomething converter=”#{categoryConverter}” /> or <f:converter binding=”#{categoryConverter}” /> instead of <h:inputSomething converter=”categoryConverter” /> or <f:converter converterId=”categoryConverter” /> By the way, similar problem exist for @EJB inside a @FacesConverter. It however offers a way to be grabbed by JNDI manually. See also Communication in JSF 2.0 – Getting an … Read more

Difference between Mojarra and MyFaces

Why do I need more jars if I use MyFaces? Because those commons-* dependencies are not bundled in MyFaces. On the other hand, if you’re using other libraries from Apache.org which also use those commons-* dependencies, then you ultimately end up with smaller total size libraries. Noted should be that since Mojarra 2.1.6 a single … Read more

tech