when use <p:document> to generate a pdf, there is a disposition option, the pdf will be downloaded instead of rendered in browser when set disposition=attachment
now i am using <p:form> to fill out an existing form, there is no such an option? In this case how can i make the file downloaded automatically?