Questions to Optimus
Posted: 09 Dec 2009, 16:29
Hello,
I have some questions to using optimus.
1.) I didn't see in your wiki about optimus that a listener is needed. Don't we need include org.primefaces.optimus.listener.ContextListener in web.xml? Who calls Guice.createInjector(...)?
2) If I use @ManagedBean instead of @Controller I can not use @Inject inside of bean. Right?
3) Can I mix annotations, so that @Controller declaration for a bean and using of JSF 2 annotations @ManagedProperty or @PostConstruct inside of bean work together?
4) How can I inject something into a converter or validator? I use annotations @FacesConverter / @FacesValidator (without registration in faces-config, but only in facelet taglib.xml). Could optimus help here?
Thanks a lot!
Oleg.
I have some questions to using optimus.
1.) I didn't see in your wiki about optimus that a listener is needed. Don't we need include org.primefaces.optimus.listener.ContextListener in web.xml? Who calls Guice.createInjector(...)?
2) If I use @ManagedBean instead of @Controller I can not use @Inject inside of bean. Right?
3) Can I mix annotations, so that @Controller declaration for a bean and using of JSF 2 annotations @ManagedProperty or @PostConstruct inside of bean work together?
4) How can I inject something into a converter or validator? I use annotations @FacesConverter / @FacesValidator (without registration in faces-config, but only in facelet taglib.xml). Could optimus help here?
Thanks a lot!
Oleg.