This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Target unreachable, identifier resolved to null
 
It's not a secret anymore!