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
JSF Session bean is null and unable to save the current user object
I am trying create a simple login page, where the username and password is checked against the data stored in the database (using hibernate). When successfully authenticating the user, I want to store the ID or the user object in the session bean.…

avizzzy
- 440
- 9
- 21
0
votes
0 answers
bookModeling cannot be resolved
my Error is :
"bookModeling" cannot be resolved
and my BookModeling:
public class BookModeling implements Serializable {
private static final long serialVersionUID = 2117669648358293028L;
private String Book;
public String getBook() {
return…

Silent
- 135
- 3
- 8
0
votes
1 answer
At what point is a field using @ManagedProperty annotation set?
At what point is a field using @ManagedProperty annotation set?
Specifically, does it happen during construction or after construction?

SidK
- 76
- 7
0
votes
1 answer
Error when using JSF @ManagedProperty(...)?
I am having trouble using @ManagedProperty. As soon as I assign it to a property I get the error below. Apparently the parameter is understood as null, but this is not the wanted case. Why is @ManagedProperty(value = "#{param.menu}") returning…

Socrates
- 8,724
- 25
- 66
- 113
0
votes
0 answers
ManagedProperty is not changed when locale set programmatically
I defining my locales in faces-config.xml as descibed here: JSF 2 localization (managed bean)
And for the EL in my XHTML pages it is working. Even when I switch my language.
But the @ManagedProperty("#{msgs}") in my managed bean is not changed.…

mr.wolle
- 1,148
- 2
- 13
- 21
0
votes
1 answer
Cant instantiate class when using managed property
I'm learning Java 6 EE and I have a simple web app.
I have UserBean class that uses CurrencyManager class. CurrencyManager is application scoped and is a managed bean. UserBean is managed bean and session scoped.
Here is my…

isklenar
- 974
- 2
- 14
- 34
0
votes
2 answers
Can I get an instance of a class in Java during runtime if I know its ClassLoader (ClassLoader Namespace)
I am just wondering if I can get an instance of a class (reference to an Object) during JVM runtime if I know its Classloader. Please refer to the code bellow to understand my question.
Class A:
package local.run;
public class A {
public static…

sreekarN
- 15
- 1
- 5
0
votes
1 answer
Managed Property from one bean to another
Can someone of you explain me, why the first code works and the other one doesn't?
Working:

Maximilian Schmidt
- 13
- 4
0
votes
2 answers
Update a view scoped JSF beans' injected bean
@SessionScoped public class User {
... //settings, attributes, etc
}
@ViewScoped public class FooController {
@ManagedProperty(value="#{user}")
private User user;
...
}
@RequestScoped public class LoginController…

Eric
- 1,953
- 4
- 24
- 33
0
votes
2 answers
Primefaces DataTable not updating after passing parameters between Managed Beans
I'm currently working with Primefaces datatable with simple CRUD operations. This Datatable shows tasks of a work list that's selected previously in another datatable that show worklists of projects. To get the selected worklist, i inject the…

Reem
- 169
- 1
- 4
- 15
0
votes
0 answers
Can't access one managed bean from another
I'm a beginner in JSF and I'm having problems accessing data stored in one session scoped bean from another bean. I've read similar questions here, but they didn't help.
Anyway, here's one bean:
import javax.faces.bean.ManagedBean;
import…

AndrejaKo
- 1,721
- 5
- 25
- 41
0
votes
0 answers
Parameter of managed bean is null when is injected on another MB with Managed Property
I have a ManagedBean A with some parameters and Managed B which have MB A with parameter injected by @ManagedProperty, the MB A is injected on B with no problems but the parameters of A is null, anyone have this problem?

Leonardo
- 61
- 1
- 3
0
votes
1 answer
usage of @ManagedProperty in prerender method
I am having a data table like below in my xhtml:
Now in my backing bean, I have:
@ManagedBean
@RequestScoped
public class EmployeeBean implements Serializable {
…

Sudipta Deb
- 1,040
- 3
- 23
- 43
0
votes
0 answers
JSF 2 ManagedProperty is null
I know there are loads of questions on SO regarding this exact issue, but I couldn't find a solution to my problem. I'm trying to use a @ManagedProperty in JSF 2. I used the example from this page, but mine's not…

neizan
- 2,291
- 2
- 37
- 52
0
votes
0 answers
injecting `sessionScoped` `managedBean` doesn't work
I have a sessionScoped managedBean called UserManager, when I try to print #{UserManager.loggedIn} in the view, It work, but in my servlet-filter the injection of this managedBean doesn't work.
I tried to inject it like…

ThunderPhoenix
- 1,649
- 4
- 20
- 47