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 Target unreachable, identifier 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 "Target unreachable, identifier resolved to null" Watch "Target unreachable, identifier resolved to null" New topic
Author

Target unreachable, identifier resolved to null

tom davies
Ranch Hand

Joined: Apr 27, 2012
Posts: 168
This is only my second jsf. The first just redirected to a new page.
I want to get the user inputted number, check to see if it equals a random number i generated and then on a new page, display the users guess, the random number and a response depending on if they guessed right or not.
When i submit the form on the input page i get this error

/play_game.xhtml @12,85 value="#{GameBean.guess}": Target Unreachable, identifier 'GameBean' resolved to null

User input page


Output page


Game Bean
Vladimir Mokrozub
Greenhorn

Joined: Aug 31, 2012
Posts: 12
By default, bean names starts with a lowercase letter, "gameBean" in your case.
Also, it seems you misprinted bean name in the output page:
tom davies
Ranch Hand

Joined: Apr 27, 2012
Posts: 168
Thank you, i noticed the spelling mistake after i had posted this. I have changed the bean to gameBean and adjusted all appropriate tags and it works now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Target unreachable, identifier resolved to null
 
Similar Threads
First Cup: Java EE Tutorial
@ConversationScoped
Bean value not maintained in RequestScoped
Why events are not fired when value changes in h:selectOneMenu? I am stuck!
<p:accordionPanel> component not rendered