Skip to content

Instantly share code, notes, and snippets.

@edm00se
Created January 4, 2020 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edm00se/cd65623c3b81ad4e563fcb6656d0ebfe to your computer and use it in GitHub Desktop.
Save edm00se/cd65623c3b81ad4e563fcb6656d0ebfe to your computer and use it in GitHub Desktop.
java rite of passage blog post code elements
public static Database getMyDataNSF(){
return FacesContext.getCurrentInstance().getApplication()
.getVariableResolver().resolveVariable(
FacesContext.getCurrentInstance(), "confBean")
.getDBObj();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment