Hi all,
Did you think in some mechanism for updating the jGrowl component in the client-side after every ajax request?
I have ajax requests that generate some messages... so it would be useful to update the jGrowl... I tried by adding:
if(request.isXHR()) {
JavaScriptCallback callback = new JavaScriptCallback() {
@Override
public void run(JavaScriptSupport javascriptSupport) {
//Forcing click in an action link which updates a zone wrapping the jGrowl component
javascriptSupport.addScript(InitializationPriority.LATE, "$('#refreshClientMessages').click()");
}
};
ajaxRenderer.addCallback(callback);
}
I put that in a request filter, but it didn't work, I am getting:
"Unexpected error: Page must be specified before initializing for partial page render."
I hope you have a better alternative.
Regards,
Matías.