On Tue, Oct 19, 2010 at 3:20 AM, Jakob Korherr <[email protected]>wrote:

>
> Those things you're encountering really seem like GlassFish (or
> NetBeans) bugs to me.
>
> Actually @Model really should work, because it is just a Stereotype
> for @Named @RequestScoped. My guess here is that GlassFish does not
> enable CDI correctly when running with MyFaces, because if you test
> @Model in Tomcat using MyFaces-2 and Apache OpenWebBeans it works
> fine!
>
> Regards,
> Jakob
>
>
Right you are.  I had to go over to the Glassfish forum to learn this, but
as it turns out CDI does not work unless you have a beans.xml file -- even
if it has nothing in it.

A.

Reply via email to