"Disappointing" and "Utterly Horrible" are not equal.
Davie Lin wrote:Yes, I am a rookie, too
what are the scope of your bean?
do you have immediate="true" attribute in your button?
Tim Holloway wrote:If you misspell or mis-capitalize the name of an action method, it won't be called and you won't see any error messages about it.
Likewise, if the action method's signature isn't "public String xxxxx()" - where "xxxxx" is the method name used on the JSF view, it won't be called and you won't see any error messages about it.
Finally, if there are validation errors for fields on the form, the lifecycle processor won't fire off the "do action" phase, since not only is the action bypassed, but also so is bean updating.. You'll see error messages, but ONLY if you code a message display tag on that view. It's a good idea to place an "<h:messages/>" on the page just to make sure you see all the messages.
"Disappointing" and "Utterly Horrible" are not equal.
Tim Holloway wrote:
Did you define the backing bean containing the action method in faces-config.xml? If the bean isn't locatable by the EL processor, the action method won't be fired, and there won't be an error.
You can post snippets of your View and backing bean for us to examine. Just use the "code" button so that the formatting will be preserved.
nitin pokhriyal wrote:change your entry in faces like
...
"Disappointing" and "Utterly Horrible" are not equal.
Tim Holloway wrote:
Basically, what we're saying is that upper/lower case is critical in JSF, just as it is for Java object in general, so do make sure everything's being defined and referenced properly.
nitin pokhriyal wrote:can you post your web.xml also.
rubbery bacon. crispy tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|