File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes ManagedBean isn't instantiated? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "ManagedBean isn Watch "ManagedBean isn New topic
Author

ManagedBean isn't instantiated?

Nuno Miguel Santos
Greenhorn

Joined: Nov 01, 2011
Posts: 10
I'm starting my first steps in JSF.

I've already read this link

http://docs.oracle.com/javaee/6/tutorial/doc/bnawq.html#bnaww

in regards to map initialization.

The problem is, I want to populate my map with values residing in a file.

How can I do that?

I've tried not using faces-config.xml and calling a support method in the bean's constructor, but my select list box isn't populated.

My bean class:



As for my JSF file, it is like this:



I've tested the bean's functions in a test application, and everything works fine.

So my guess is the bean isn't instantiated?

Regards,
Nuno.
kumar toomu
Greenhorn

Joined: Dec 29, 2011
Posts: 14
the definition of your class does not specify a managed bean name...
so the default name would be "aDGroupListBean"
since bean names are case sensitive, update your jsf file using
<f:selectItems value="#{aDGroupListBean.withoutAccess}" />
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ManagedBean isn't instantiated?
 
Similar Threads
JSF 2.0 Login
Problem with navigation in JSF with Filter
Managed bean is immediately called on page load
Trying to change <ui:include> src tag dinamically
java.lang.ClassNotFoundException for my generic DAO