No need for such brute force and complexity. I have tracked down the real cause for the message disappearing. See screenshot-01
. Furthermore, "... callback function ... this is not necessary when you simply want to perform multiple effects in sequence. By default, jQuery's animations are queued." — JavaScript: The Definitive Guide, 6th ed., p. 552. It would just be simpler to chain the show(), if needed.
"fade" and "size" effects have an opposite problem: the message would show but there is no discernible animation, not even with a long duration. "fade" requires pre-chaining a hide() first; "size" requires setting some internal options specific to its effect.
TLD doc
and showcase demo updated.
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\build.xml#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\message\Message.java#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\samples\showcase\showcase\src\main\webapp\resources\examples\ace\message\message.xhtml#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\samples\showcase\showcase\src\main\java\org\icefaces\samples\showcase\example\ace\message\MessageBean.java#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\message\MessageMeta.java#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\message\MessageRenderer.java#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\messages\messages.css#35375
A: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\messages\messages.js#35375
M: C:\svn\ossrepo\icefaces3\trunk\icefaces\samples\showcase\showcase\src\main\resources\org\icefaces\samples\showcase\view\resources\messages.properties#35375
First attempts working. But some effects just mangle the icon/message while in animation (see video), probably due to the tricky spacing/positioning CSS underlying the icon/message.
Other issues to work out: