This is on my bean, I am trying to call the link from this bean method.
public void downloadXML() throws YDSException, FileNotFoundException, IOException {
Link = "http://localhost:8080/uberConsole/download?file=DEMODATA.xml";
This is on my primeface xhtml button.
<p:button href="#{dbctoxmlProcessView.downloadXML()}" disabled="#{dbctoxmlProcessView.disable}"
value="Download XML File" id="btnGenXML"
icon="fa fa-fw fa-download" title="Download Generated XML"
styleClass="ui-priority-primary"/>