Forums Register Login

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

+Pie Number of slices to send: Send
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
--------
+Pie Number of slices to send: Send
Change the bean scope form the request to session in faces config file and try it out
+Pie Number of slices to send: Send
The problem is resolved when i changes the scope to session.Can you explain me the reason.
Thanks
Raj
+Pie Number of slices to send: Send
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.
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 38101 times.
Similar Threads
Which Package to Import to Use FacesContext's getRequestMap()?
JSF property file's value is not executing
EL expressions are not evaluated
Problem running a simple JSF application
JSF Implementation Problems: executePhase(RENDER_RESPONSE
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:26:21.