Skip to content

Instantly share code, notes, and snippets.

@incepttechnologies
Created August 7, 2014 22:14
Show Gist options
  • Save incepttechnologies/0c3d43c8cd697881f39c to your computer and use it in GitHub Desktop.
Save incepttechnologies/0c3d43c8cd697881f39c to your computer and use it in GitHub Desktop.
read a value from flash scope
public String someViewAction() {
System.out.println("flashExampleBean.someViewAction called");
Flash fl = FacesContext.getCurrentInstance().getExternalContext().getFlash();
Set flSet = fl.keySet();
System.out.println("FL set size = " + flSet.size()
+ ", i1 value=" + fl.get("i1")
+ ", i2 value=" + fl.get("i2")
+ ", i3 value=" + fl.get("i3"));
return "index_1";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment