This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes How to display Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to display "message sent" after to invoke commandButton ?" Watch "How to display "message sent" after to invoke commandButton ?" New topic
Author

How to display "message sent" after to invoke commandButton ?

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 94

See my code xhtml:



My class Java:



it not worked!
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218

You're doing a full page submit which is why the message doesn't appear, but something like this should do what you want
(note that you're specifying null as the id in addMessage() so you need h:messages, to get the h:message components to
render you need to give them ids and include them in the render= attribute value of the f:ajax tag):



Regards,
Brendan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display "message sent" after to invoke commandButton ?
 
Similar Threads
Birth Date nightmare - passing variable between beans and java objects
JSF Message issue
<rich:ajaxValidator>
JEE example with EJB, JSF is not working
how to add a row dynamically in panel grid by clicking on command button using jsf