facebook

[Closed]JSF Quickstart – failure message doesn’t work

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #245198 Reply

    rvaessen
    Member

    Hello,

    I have decided to learn JSF. Step 1 – try the JSF quickstart. It works (Hurray!) – except for what happens when an invalid password is entered. There are 3 lines of code in UserBean.loginUser() that are obviously supposed to produce a failure message, but I do not see the message when I run the code and enter an invalid password. What I do see, however, are the following 4 lines in the Tomcat console:

    Jan 25, 2006 2:44:57 PM com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
    WARNING: Unable to find component with ID ‘userName’ in view.
    Jan 25, 2006 2:44:57 PM com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
    WARNING: Unable to find component with ID ‘password’ in view.

    More Info:
    1) When I enter an invalid password, I am taken back to userLogin.jsp as per the navigation rules.
    2) With regard to those four lines above that are printed to the console whenever I enter an invalid password – they also appear when Tomcat first starts up.

    Finally, I downloaded and tried the JSFLoginDemo.zip archive from the MyEclipse site – same result.

    Any thoughts or comments will be appretiated.

    Regards,
    Robert

    #245233

    Riyad Kalla
    Member

    Sorry Robert,
    this was an oversight on my part. You can add a message tag to your login page that will print the errors comming back.

    #245641

    rvaessen
    Member

    All squared away! Thank you, Riyad.

    Robert

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed]JSF Quickstart – failure message doesn’t work

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