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.

Injecting one view scoped bean in another view scoped bean causes it to be recreated

I need to use some data saved in a view scoped bean in an other view scoped bean. @ManagedBean @ViewScoped …

jsf jsf-2 dependency-injection managed-bean
Opening a new window if condition true in managed bean

I want to implement a situation where the user enter a URL, and if a specified condition is true in …

jsf primefaces managed-bean new-window
JSF bean: call @PostConstruct function after ViewParam is set

I have a product.xhtml and a ProductBean. I use /product/{id} to access the products so I have a …

jsf-2 managed-bean postconstruct viewparams
UnserializableDependencyException: WELD-001413: The bean declares a passivating scope but has a non-passivation-capable dependency

I have the below CDI managed bean: @Named @SessionScoped public class InfoPageController implements Serializable { @Inject private InfoPageMapper mapper; } It throws …

jsf cdi managed-bean
Property action listener is not called when attached to Primefaces' command link

I am using Primefaces and I have a problem that the setPropertyActionListener isn't fired and thus isn't setting a property …

jsf-2 primefaces managed-bean view-scope
Java singleton class vs JSF application scoped managed bean - differences?

Is there a difference using a singleton class and an application scoped managed bean to hold application data? I need …

jsf singleton managed-bean
How to get properties file from /WEB-INF folder in JSF?

I have some properties file in /WEB-INF. And I want to load it in a JSF managed bean. Is there …

jsf properties managed-bean properties-file web-inf
ManagedProperty not injected in @FacesConverter

I'm trying to inject a ManagedBean in my FacesConverted the following way: @ManagedBean @RequestScoped @FacesConverter(forClass = Group.class) public class …

jsf dependency-injection jsf-2 converter managed-bean
Exception - Unable to set property userLogin for managed bean credentials

For authentication purposes, I am injecting a request scoped backing bean into another session scoped bean that is going to …

jsf managed-bean session-scope
Error : non-serializable attribute value into ViewMap

i have the same application in 2 systems(laptops) but its working in one but not in another.i get the …

java jsf jakarta-ee managed-bean