Pages

Tuesday, September 17, 2013

JSF 2.x Tip of the Day: Resetting the Current UIViewRoot

I needed to clear the UIViewRoot for something I was working on. In the process, I created a simple method that replaces the current view with a new view using the same view ID. I figured I would publish this little gem before I deleted the proof of concept I was working on.

I also thought I should include an example where I am using it to navigate to another page.

0 comments :