Download a file with JSF with Pretty Faces wrapped response
===

I need to implement a file download functionality for my application. I followed this example http://stackoverflow.com/questions/2914025/forcing-a-save-as-dialogue-from-any-web-browser-from-jsf-application/2914079#2914079 but the save dialog never appears while the code executes normally. After I looked at my http response I saw that is wrapped in a pretty faces response since I'm also using pretty faces. Is there something I should change to make it work with pretty faces (assuming that is the reason for not working)?