Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ManagedBean isn't instantiated?

 
Nuno Miguel Santos
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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}" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic