users@glassfish.java.net

Re: _at_Model versus _at_Named versus _at_ManagedBean

From: <glassfish_at_javadesktop.org>
Date: Fri, 10 Sep 2010 20:25:56 PDT

First, note that @Model has the @Named annotation on it, so everything you give @Model, you also give @Named.

Secon, if you are on a certified EE container, such as GlassFish Server Open Source Edition, use @Named or @Model, as appropriate.

If you are not fortunate enough to be on an EE container, you can still get the annotation goodness using @javax.faces.bean.ManagedBean.

I hope this helps,

Ed Burns
JSF technical lead
Oracle America, Inc.
[Message sent by forum member 'edburns']

http://forums.java.net/jive/thread.jspa?messageID=482398