JSF Central - Articles & Books
JSF Central

 Articles & Books 
Articles & Books > Articles
Death To FacesContext.getCurrentInstance()
Posted: March 5, 2013Published: January 7, 2012
Author: Roger KeaysPublisher: JSFCentral
In this article, JSF 2.0 Expert Group member Roger Keays highlights the pitfalls of using the static FacesContext.getCurrentInstance() locator method, and describes one workaround using JSF's native dependency injection and another using EL 2.2 method parameters.

RSS feed(all feeds)
RSS feed(Articles)

The Editor's Desk
Inside Facelets
In the Trenches

Site version 1.83  Report web site problems

Copyright (C) 2003-2015 Virtua, Inc. All Rights Reserved. Java, JavaServer Faces, and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. in the United States and other countries. Virtua, Inc. is independent of Oracle Corporation. All other trademarks are the sole property of their respective owners.