MyEclipse: [Closed] In the JSF Demo, there seem to be a few holes... Mork - Oct 31, 2005 - 07:52 PM Post subject: [Closed] In the JSF Demo, there seem to be a few holes...
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.
-- Msupport-rkalla - Nov 01, 2005 - 03:16 AM Post subject:
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.Mork - Nov 01, 2005 - 11:36 AM Post subject:
Thanks.support-scott - Nov 03, 2005 - 09:03 PM Post subject:
Thanks for bringing it to our attention. We've opened a PR to address it in 4.1