Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mork
Post subject: [Closed] In the JSF Demo, there seem to be a few holes...  PostPosted: Oct 31, 2005 - 07:52 PM
Veteran Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Nov 01, 2005 - 03:16 AM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Post subject:   PostPosted: Nov 01, 2005 - 11:36 AM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 337

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Nov 03, 2005 - 09:03 PM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits