I want to refresh jsf page(or using ajax to update part of page), when downloading a file. But there is a conflict between them now. html code like that:
<h:commandButton id="download-button" name="download-button"
action="#{myController.download}" value="download"></h:commandButton>