users@glassfish.java.net

Programmatically creating managed beans

From: <glassfish_at_javadesktop.org>
Date: Fri, 06 Mar 2009 02:51:49 PST

Hi,

Is there a way to create a managed bean programmatically rather than specifying it in the faces-config.xml.

For instance I might create an application bean that on initialisation creates some POJO's from a database using hibernate and then wants to make them available as managed beans with an application scope.

Is this possible?

Also with the init method on the AbstractApplicationBean class, is this called after any managed properties have been set or before?

Regards

Liam
[Message sent by forum member 'liammorren' (liammorren)]

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