This content has been marked as final.
Show 3 replies
-
1. Re: H:Messages - Hide After Duration
leesy Jul 25, 2008 10:49 AM (in response to leesy)Sorry - can someone delete this message. I went back to the documentation and saw what I needed in there. Just missed it a few times.
<rich:effect for="window" event="onload" type="Fade" params="targetId:'messageholder',delay:5" />
-
2. Re: H:Messages - Hide After Duration
bcn Jul 5, 2011 6:37 AM (in response to leesy)Hi,
how can this be done in RichFaces 4 where rich:effect is gone?
Thanks
-
3. Re: H:Messages - Hide After Duration
bcn Jul 6, 2011 7:14 AM (in response to bcn)For anyone interested, I found a way (without rich: tags):
<h:outputScript name="jquery.js" />
<h:outputScript>
jQuery(document).ready(function() {
jQuery('#global_messages').ready(function() {
if ('#{view.viewId}' == '/index.xhtml' && '#{facesContext.maximumSeverity}'.substring(0, 4) == 'INFO') {
jQuery('#global_messages').delay(5000).slideUp(2000);
}
});
});
</h:outputScript>
<h:messages id="global_messages" />