managed-property Questions

2

Solved

I've a CDI managed bean wherein I'd like to set request parameters as managed properties: import javax.inject.Named; import javax.enterprise.context.RequestScoped; @Named @RequestScoped public cl...

2

Solved

I'm new to JSF and was wondering: If I have a controller that handles all the work for a given page and a bean that holds all the data for said page, is It necessary to have both the @ManagedPro...
Trillbee asked 6/12, 2013 at 10:10

2

Solved

What is the difference between defining View Params like this: <f:metadata> <f:viewParam name="id" value="#{someBean.id}"/> </f:metadata> And defining the pr...
Legged asked 3/2, 2011 at 16:45

1

Solved

I'm using a hierarchy of classes and what I would optimally try to do is have @ManagedBean's that inherit a class that have @ManagedProperty members and @PostConstruct methods. Specifically, will ...
Ornithology asked 29/10, 2012 at 8:0

1

Solved

I've some trouble with injecting one managedbean in another by defining a managedproperty. I'm googling and stackoverflowing now for 3 days, but with no result... I'm developing with eclipse 4.2 a...
Hawger asked 3/9, 2012 at 7:50

1

Solved

I'm trying to inject a DAO as a managed property. public class UserInfoBean { private User user; @ManagedProperty("#{userDAO}") private UserDAO dao; public UserInfoBean() { this.user = dao...

3

Solved

If I cannot use the @ManagedProperty annotation with @Named, because @ManagedProperty doesn't work in CDI(?), then how do you pass params in the URL to the facelets client? In my code, I want to pa...
Transpadane asked 7/4, 2012 at 22:19

1

Solved

I'm trying to convert some code from Richfaces 4 showcase to use CDI instead of JSF annotations. I understand that I can use @Named to replace @MangedBean and @Inject to replace @ManagedProperty. B...
Spermatocyte asked 29/3, 2012 at 22:26

1

Solved

I'm trying to deal with @javax.faces.bean.ManagedProperty but without success ! I've been following this guide, and it not seems that hard. But my code simply won't work! Here's a little snippet @M...
Emulation asked 29/3, 2012 at 8:0
1

© 2022 - 2024 — McMap. All rights reserved.