Created
October 17, 2015 00:11
-
-
Save kevinhooke/efa25cd3afd627fb7f97 to your computer and use it in GitHub Desktop.
Write HTTP Redirect for a JSF AJAX Partial Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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