facebook

[Closed] In the JSF Demo, there seem to be a few holes…

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240514 Reply

    Mork
    Participant

    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

    #240542 Reply

    Riyad Kalla
    Member

    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.

    #240564 Reply

    Mork
    Participant

    Thanks.

    #240753 Reply

    Scott Anderson
    Participant

    Thanks for bringing it to our attention. We’ve opened a PR to address it in 4.1

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] In the JSF Demo, there seem to be a few holes…

You must be logged in to post in the forum log in