 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: [Closed] In the JSF Demo, there seem to be a few holes...
Posted: Oct 31, 2005 - 07:52 PM
|
|
Veteran Member


Joined: Dec 09, 2004
Posts: 337
|
|
For example,
If login fails, we have the code from the demo:
FacesContext facesContext = FacesContext.getCurrentInstance();
FacesMessage facesMessage = new FacesMessage(
"You have entered an invalid user name and/or password.");
facesContext.addMessage("loginForm", facesMessage);
-----------
Yet, if the login actually does fail, this message doesn't display. We just stay on the login page with no message.
How do you get this message to display?
Thanks.
-- M |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 01, 2005 - 03:16 AM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23310
|
|
Mork,
Woops this was an issue with copy and pasting code from our old tutorial into the new one. We didn't add a label in the new form to display the error message. I appologize for the oversight.
In the mean time, what you want to add is a h:messages component, found under the JSF-Basic menu. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 01, 2005 - 11:36 AM
|
|
Veteran Member


Joined: Dec 09, 2004
Posts: 337
|
|
|
|
|
 |
|
|
Post subject:
Posted: Nov 03, 2005 - 09:03 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6578
|
|
| Thanks for bringing it to our attention. We've opened a PR to address it in 4.1 |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |