Top "Managed-bean" questions

"Managed bean" is a Java EE specific term for Javabean classes which are designed to act as a controller in some MVC application.

SelectOneMenu updates other SelectOneMenu

I want to update the second SelectOneMenu when I select any item of the first SelectOnMenu. As it is now, …

java ajax jsf managed-bean selectonemenu
Using negation in disabled attribute of h:selectBooleanCheckbox

Could someone please tell me how to use negation in the value of a component say checkbox to enable and …

jsf managed-bean
Why are there different bean management annotations

What is the difference between import javax.annotation.ManagedBean; import javax.enterprise.context.SessionScoped; and import javax.faces.bean.ManagedBean; …

jsf cdi managed-bean
NullPointerException while trying to access @Inject bean in constructor

I've a session scoped bean: @Named @SessionScoped public class SessionBean implements Serializable { private String someProperty; public String getSomeProperty() { return someProperty; } } …

jsf constructor nullpointerexception cdi managed-bean
How to create and destroy CDI (Weld) Managed Beans via the BeanManager?

I'm trying to create instances of CDI managed beans using the BeanManager rather than Instance .select().get(). This was suggested …

java garbage-collection cdi managed-bean jboss-weld
@PostConstruct didn't get called by JSF if ManagedBean is inside jar library

I'm running with the following problem. I have a few Managed Beans that are shared between, at this moment, two …

jsf managed-bean postconstruct
JSF injection with managed property, good pattern?

I'm quite new to JSF and not really "used" to the different thinking so I'm struggling on what (I assume) …

jsf design-patterns code-injection managed-bean postconstruct
@javax.faces.bean.ManagedProperty in CDI @Named bean returns null

I'm trying to deal with @javax.faces.bean.ManagedProperty but without success ! I've been following this guide, and it not …

jsf cdi managed-bean managed-property
Canonical way to obtain CDI managed bean instance: BeanManager#getReference() vs Context#get()

I figured that there are two general ways to obtain an auto-created CDI managed bean instance via BeanManager when having …

cdi managed-bean