-
1. Re: Managed Beans
ilya40umov Jan 18, 2011 6:57 AM (in response to jenesiaf)Take a look at this article:
And at this (it is about an injection in jsf 2.0):
http://www.mkyong.com/jsf2/injecting-managed-beans-in-jsf-2-0/
-
2. Managed Beans
jenesiaf Jan 18, 2011 7:00 AM (in response to ilya40umov)I tried doing details specified in the link before I could post this question here.
On running the application nothing was displayed.
I changed my dataModel code to:
@ManagedBean(name="orderDataModel")
@SessionScoped
public class MultipleOrderDataModel extends SerializableDataModel {
@ManagedProperty(value="#{orderDataProvider}")
private MultipleOrderDataProvider dataProvider;
}
This doent work
-
3. Managed Beans
ilya40umov Jan 18, 2011 7:03 AM (in response to jenesiaf)1) What is your environment(App server, jars included project, java version etc)?
2) What exactly does not work in your case? (Any errors/warns in log etc.)
-
4. Managed Beans
ilya40umov Jan 18, 2011 7:09 AM (in response to ilya40umov)And also please move this article to Richfaces user forum. This forum is intended for RF development discussions but not for users' questions.
-
5. Managed Beans
jenesiaf Jan 18, 2011 7:39 AM (in response to ilya40umov)JBoss is the app server.
the managed bean is a datamodel used to load data to a table.
when I move the details as specified from the faces-config.xml, nothing is loaded onto the table
-
6. Managed Beans
ilya40umov Jan 18, 2011 7:50 AM (in response to jenesiaf)1) What is you Jboss version?
2) Are the other tags and beans working ok?
3) Could you provide a full list of jar in your classpath?
4) Have you tried to debug if a constructor of this bean is fired or not?
-
7. Managed Beans
ilya40umov Jan 18, 2011 8:18 AM (in response to ilya40umov)I guess this article can help you with Jboss + JSF 2.0