• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: Target Unreachable, identifier 'StoreNameBean' resolved to null

 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem with my very simple first JSF app.
when I access page, I get the following error.

org.apache.jasper.el.JspPropertyNotFoundException: /inputname.jsp(15,3) '#{StoreNameBean.personName}' Target Unreachable, identifier 'StoreNameBean' resolved to null

what's the problem? I searched google, but couln't find any solution.

I have all necessary libraries in project, and I am using jsf 1.2.

jsf page:


faces-config.xml


web.xml
--------
 
Santhosh Krishnamoorthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the bean scope form the request to session in faces config file and try it out
 
rajkiran vadla
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is resolved when i changes the scope to session.Can you explain me the reason.
Thanks
Raj
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why changing the scope fixed it, but I do know that "StoreNameBean" is not a proper name for a backing bean. StoreNameBean is an instance, not a class, so its name should be a lower-case letter. JSF will usually accept a mis-capitalized name, but some of the development tools will not, and JSF annotations won't accept such names by default.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic