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.

How to get managedbean property from another bean in JSF

I searched similar questions but I'm a bit confused. I have a login page, so LoginBean also which is; @ManagedBean(…

jsf managed-bean
Retrieve the web app root path in JSF Managed Bean

Im trying to access the example/web folder (see below in the image) in a jsf managed bean but cant …

java jsf managed-bean
How do I force an application-scoped bean to instantiate at application startup?

I can't seem to find a way to force an application-scoped managed bean to be instantiated/initialized when the web …

jsf initialization startup managed-bean
How to pass JavaScript variables as parameters to JSF action method?

I'm preparing some variables in JavaScript (in my specific case, I'd like to get GPS location): function getVars() { // ... var x = …

javascript jsf parameter-passing managed-bean
Spring JSF integration: how to inject a Spring component/service in JSF managed bean?

I understand that a managed bean works like a controller, because your only task is "link" the View Layer with …

spring jsf dependency-injection integration managed-bean
Getting selected value of a SelectOneMenu

I'm testing the component "SelectOneMenu" on a jsf page. I'm populating this component dinamically though my ManageBean (that will get …

jsf-2 managed-bean selectonemenu
JSF managed-bean EJB injection

I have an EJB (PersonManager) in the Enterprise Application modul, which injects another EJB (Person): @Stateful public class PersonManager implements …

jsf ejb managed-bean
Getting a path to a resource file from managed-bean in JSF

I have this situation: I am trying to remove an old avatar image for a user before putting a new …

jsf managed-bean
cannot create session after response has been committed

i am getting the following error on my application startup page load : SEVERE: Error Rendering View[/HomeTemplate/equityVolume.xhtml] javax.…

java session jsf jakarta-ee managed-bean
Transaction is required to perform this operation (either use a transaction or extended persistence context)

I'm using Wildfly 10.0.0 Final, Java EE7, Maven and JPA 2.1. When I am querying my database for records it works fine …

hibernate jpa jakarta-ee cdi managed-bean