managed-bean Questions

1

Solved

I'm testing the component "SelectOneMenu" on a jsf page. I'm populating this component dinamically though my ManageBean (that will get all Animals from database). I would like to know if is possib...
Tarton asked 12/2, 2013 at 1:47

2

Solved

I have SessionScoped bean called userSession to keep track of the user ( username, ifLogged, etc). I want to filter some pages and therefore I need to access the bean from the webFilter I created. ...
Pentagrid asked 22/1, 2013 at 15:24

2

Solved

I need to use some data saved in a view scoped bean in an other view scoped bean. @ManagedBean @ViewScoped public class Attivita implements Serializable { // } and @ManagedBean @ViewScoped pub...
Unfounded asked 9/1, 2013 at 8:28

1

Solved

I have a JSF Beans structure of this sort: @ManagedBean @ViewScoped public class ViewBeany implements Serializable { .... @ManagedProperty(value='#{sessionBeany}) transient private SessionBeany...
Garzon asked 6/1, 2013 at 15:34

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

2

Solved

I want to update the second SelectOneMenu when I select any item of the first SelectOnMenu. As it is now, I get the values for the SelectOneMenus from a ManagedBean. I guess I've to use AJAX ...
Logical asked 21/9, 2012 at 15:53

2

Solved

I've read @EJB in @ViewScoped managed bean causes java.io.NotSerializableException, but my state saving setting is server. Here is what I have: web.xml: <?xml version="1.0" encoding="UTF-8"?&...
Vancevancleave asked 13/10, 2011 at 23:33

5

Solved

I have a properties file for localization: foo=Bar title=Widget Application This is tied in as a resource-bundle in the faces-config: <resource-bundle> <base-name>com.example.mess...
Trickery asked 13/8, 2010 at 14:56

2

Okay, so I have a JSF backing bean that needs a reference to another (@NoneScoped) bean. Should I @Inject it or use @ManagedProperty to obtain an instance reference from the container? Why ...
Wiltz asked 31/8, 2012 at 13:6

2

Solved

Can I pass a input text field value to a bean method without binding the value to a bean property? <h:inputText value="#{myBean.myProperty}" /> <h:commandButton value="Test" action="#{myB...
Caddis asked 13/8, 2012 at 20:39

2

Solved

I have generic class with this signature: public abstract class EnumListBean<E extends Enum<E>> { public List<E> getEnumList() { //implementation details } } Currently I h...
Method asked 17/7, 2012 at 18:53

1

Solved

I want a managed bean to run internally on start up in my JSF web application when the application loads. How can I write this class and configure in Glassfish?
Dualism asked 13/7, 2012 at 16:52

2

Solved

i am getting the following error on my application startup page load : SEVERE: Error Rendering View[/HomeTemplate/equityVolume.xhtml] javax.el.ELException: /HomeTemplate/equityVolume.xhtml @70,7...
Troika asked 8/6, 2012 at 13:13

1

Solved

I am stuck and need outside help from JSF experts with the following problem: I defined some converters in the faces-config.xml for specific classes so I don't have to use the converter-attribute o...
Snifter asked 8/5, 2012 at 13:58

1

Solved

I have a product.xhtml and a ProductBean. I use /product/{id} to access the products so I have a viewParam in product.xhtml with value=ProductBean.id. The problem is that inside the bean I use an i...
Continuity asked 21/4, 2012 at 17:44

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...

1

Solved

I have this Managed bean: import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import javax.annotation.PostConstruct; import javax.annotation.PreDest...
Crudity asked 16/4, 2012 at 18:47

1

Solved

I am into a problem from two days and I can not get out from this. The problem I am having is using a MangedBean property after the deserialization (I guess). The property (purchaseManager) is set...
Grendel asked 3/4, 2012 at 2:2

1

Solved

I'm using JSF 2.0. I have a managed bean which I can access through my xhtml page. Inside the bean I declared an inner class. I can access ArrayList<String> of managed bean but not ArrayList&...
Prudie asked 3/4, 2012 at 16: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

Solved

Could someone please tell me how to use negation in the value of a component say checkbox to enable and disable it? I have to disable a checkbox when the value of a property (somevalue) in bean is...
Peggi asked 27/3, 2012 at 14:3

1

Solved

Is there a difference using a singleton class and an application scoped managed bean to hold application data? I need to lookup certain JNDI ressources such as remote bean interfaces and therefore...
Piscine asked 10/3, 2012 at 23:32

1

Solved

I have an EJB (PersonManager) in the Enterprise Application modul, which injects another EJB (Person): @Stateful public class PersonManager implements PersonManagerLocal { @EJB private PersonLoc...
Meritocracy asked 24/12, 2011 at 18:51

1

Solved

I see a lot of examples marking beans as entity beans (@Entity) & named beans (CDI), so as to avoid creating 2 classes (managed bean & entity bean) and also to make use of Bean Validation s...
Mydriasis asked 11/12, 2011 at 10:3

© 2022 - 2024 — McMap. All rights reserved.