Managed property is mechanism of injecting managed bean into the property of another managed bean, by using @ManagedProperty annotation
Questions tagged [managed-property]
66 questions
0
votes
1 answer
Error Rendering View[/login.xhtml]: java.lang.NullPointerException on starting server PF10
Environment:
wildfly 22
java 11
jakarta 8
jsf 2.3
primefaces 10
Migrating from Primefaces 6.2 to 10.
I am having a NPE on loading server with an app, and on render login.xhtml it throws java.lang.NullPoinerException. I found no clue on error…

Joe
- 7,749
- 19
- 60
- 110
0
votes
1 answer
Problem with spring defined @ManagedProperty
I'm currently mantainning a Maven based JSF Web Application combined with Spring Framework and JPA and connected to a SQL Server database.
Inside the application, I created one @ManagedBean class defined with the @ViewScoped and @Scope("view")…

mrcoar
- 146
- 3
- 17
0
votes
3 answers
the best practice for performance bettween using parameter in url ?p=2 and Managed bean
I am using JSF 2.0 and Icefaces and Glassfish for my project and I want to optimise this application the best I can, and I want to know what is the most optimized method to send parameter.
first 1:
using /BackOffice/test.xhtml?id=7 in url
and …

NABS
- 3
- 1
0
votes
0 answers
Use ManagedProperty inside a RestController
I need you help to fix an issue I have.
Currently in a Bean I'm referring to the service in that way:
@ManagedBean(name="sslbean")
public class SslBean implements Serializable {
...
...
@ManagedProperty("#{sslService}")
SslService service;
public…

Matt Vegas
- 453
- 5
- 17
0
votes
1 answer
Set value to ManagedProperty
I'm trying to set a value to my ManagedProperty but I'm getting the null result when I try to print this.
I'd like to set the Bean Class to use it in my query.
I've been tryin' set String, Class, but all the times it returned a null value.
Can…

Paulo Henrique Dutra
- 25
- 10
0
votes
1 answer
Site column is not appearing on crawled properties - Sharepoint 2010
I'm trying to map a site column into a new managed property. I just created this column, I added it to a content type, and I edited a file just for setting a value on this new property. After that, I did a full crawl and I'm looking to create the…

sutterblake
- 1
- 4
0
votes
1 answer
SpringBeanFacesELResolver not working with spring WebFlow
I added SpringBeanFacesELResolver to my faces-config.xml but always when I am trying to inject property using @ManagedProperty the injection field is null.
Do you know if SpringBeanFacesELResolver works together with Spring WebFlow?

Marcin Warycha
- 65
- 1
- 8
0
votes
1 answer
Can't I access session scope variable using @ManagedProperty?
I know I can put/get session scope variables like this.
FacesContext.getCurrentInstance().getExternalContext()
.getSessionMap().put(SESSION_KEY_SOME, some);
Then can't I access the value like this?
@ManagedBean
@SessionScoped
public class…

Jin Kwon
- 20,295
- 14
- 115
- 184
0
votes
1 answer
Creating Managed Properties in the SharePoint 2013 Using CSOM c#
I'm using SPMeta2 CSOM code to create and populate lists,contentTypes and columns to my onpremm sharepoint site, but i cannot find a way to create Managed Properties.
Is there any way to do it, i have googled and just found Powershell and SSOM code…

user2269364
- 67
- 1
- 9
0
votes
1 answer
How can I inject a managed property in an ActionListener
I wanted process data from other bean, in ActionListener method, but it throw NullPointerException, so i try resafe instance of bean to next instance in init() method with @PostConstruct annotation, but it still throw NullPointerException. I know…

S.Roman
- 23
- 4
0
votes
1 answer
Difference between @ManagedProperty and FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("bean")
What's the difference between:
public class GameController implements Serializable{
@ManagedProperty(value="#{Gamebean}")
private Game game;
and
public class GameController implements Serializable{
private Game game;
public…

gastonovic
- 35
- 1
- 3
0
votes
0 answers
JSF application scoped bean not injectable as managed property of ADF request scoped bean
EDIT: This is an ADF application which uses JSF 2.0.
I have an application-scoped managed bean which I am referencing in the managed property of a request-scoped bean. I am getting a NullPointerException when trying to access the app-scoped bean…

Steve
- 91
- 10
0
votes
1 answer
How to inject Managed Sesson Bean into Entity? JSF-PrimeFaces
I want to Inject a Managed Session Bean into an Entity in JSF.
I have a requirement where I need to show different status text based on Locale selected by User on front-end. (Internationalization) for one status ID I have 4 Status text i.e.…

Harsh Dadhich
- 69
- 1
- 7
0
votes
1 answer
Avoid auto-instantiation of managed bean when injected as @ManagedProperty
I have a requestscoped bean which can receive its data from three different viewscoped beans (from 3 different pages). The beans are JSF Managed Beans.
When I use ManagedProperty in the request scoped for 3 different view scoped beans, it…

user3586195
- 498
- 4
- 15
0
votes
2 answers
Many @RequestScoped subclasses access variable from @SessionScoped bean without copy-pasting @ManagedProperty?
I read BalusC's excellent tutorial on JSF communication and it helped me establish the basics of my app. I would like to share the currently logged in User object that is set in the SessionScoped BaseBean class with all of its subclasses. Can this…

Lev
- 100
- 8