Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Created October 17, 2015 00:11
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 kevinhooke/efa25cd3afd627fb7f97 to your computer and use it in GitHub Desktop.
Save kevinhooke/efa25cd3afd627fb7f97 to your computer and use it in GitHub Desktop.
Write HTTP Redirect for a JSF AJAX Partial Request
httpResponse.setContentType("text/xml");
httpResponse.getWriter()
.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
.printf("<partial-response><redirect url=\"%s\"></redirect></partial-response>", "/the/url");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment