Dennis, after an ajax response to show/hide you must typically use javascript to control display of the messages. The widget asset may help you in just loading the assets on the page for you to be able to do that.
The widget is normally useful for the standard controller redirect or render actions where you may want to display a flash message (without necessarily using ajax).
I have followed this and although it makes an extra call it works very good. I have also integrated the responses into a db table allowing incredible ease of modifying alert messages.
I do apologise to response in the old thread, but this is what I am looking for. But, I have some questions about it.
Does Growl shown on new layer above the current layer? Is that possible to have it on a div?
If we use pjax, does anyone can give an example of it? I am really lost here…
If we load it using different controller, (say special MessageController or the same kind), is that possible if I want to have this kind of behavior, If return status success, show the growl and hide the form, but if return status is error, show the growl and keep the form including show the error message.