Skip to content

Instantly share code, notes, and snippets.

@Qkyrie
Created July 18, 2013 09:35
Show Gist options
  • Save Qkyrie/6028033 to your computer and use it in GitHub Desktop.
Save Qkyrie/6028033 to your computer and use it in GitHub Desktop.
code to call javascript from a managed bean
public void save() {
RequestContext requestContext = RequestContext.getCurrentInstance();
requestContext.execute("dialog.hide()")
}
@sarc007
Copy link

sarc007 commented Mar 3, 2018

What should be imported to get this right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment