| 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.
|
 |
 |
|
|
subject: How to display "message sent" after to invoke commandButton ?
|
|
|