How to invoke animation when redirection in jsf?

Jamies Source

I have page1.xhtml I want to be redirected to page2.xhtml after clicking on a button. My aim is to implement an animation after clicking on the button and before the page2.xhtml be displayed.

How can I implement/ invoke those type of animation on redirection ( from bean / from javascript) or How?



answered 6 months ago big data nerd #1

Your question isn't really related to JSF - it's more a HTML and Javascript question. Whenever you do a real navigation, there is no way you can do an animation. So what you have to do is, do make a JSF container (i.e. a panelGroup) and swap the content (the included page). Once you swapped the container's content, you simply do a pushState to update the displayed URL in the browser.

comments powered by Disqus