aspose file tools*
The moose likes JSF and the fly likes Error: Target Unreachable, identifier 'StoreNameBean' resolved to null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Error: Target Unreachable, identifier Watch "Error: Target Unreachable, identifier New topic
Author

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

Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 227
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

Joined: Nov 24, 2008
Posts: 2
Change the bean scope form the request to session in faces config file and try it out
rajkiran vadla
Greenhorn

Joined: Nov 26, 2011
Posts: 11
The problem is resolved when i changes the scope to session.Can you explain me the reason.
Thanks
Raj
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Error: Target Unreachable, identifier 'StoreNameBean' resolved to null
 
Similar Threads
EL expressions are not evaluated
JSF property file's value is not executing
JSF Implementation Problems: executePhase(RENDER_RESPONSE
Problem running a simple JSF application
Which Package to Import to Use FacesContext's getRequestMap()?