Write an XML document to a browser\'s response stream and cause the browser to display a \"Save As\" dialog.
Consider the foll
The code has the following issues:
) does not work with attachments.a4j tags. to .bw.write( getDomainDocument() ); to bw.write( document );.String document = getDomainDocument(); to the first line of the try/catch. (not shown) to .Essentially, remove all the Ajax facilities related to the commandButton. It is still possible to display error messages and leverage the RichFaces UI style.