ola amigão valeu muito pela sua paciência, e por ter me ensinado a fazer o download
brigadão
em relação ao ao nome do arquivo eu fiz o seguinte[code]
private StreamedContent file;
public void setFile(StreamedContent file) {
this.file = file;
}
public StreamedContent getFile() throws FileNotFoundException {
String arquivo = current.getTitulo();
String caminho=current.getCaminho();
FileInputStream stream = new FileInputStream(caminho);
file = new DefaultStreamedContent(stream, caminho,arquivo);
return file;
}
[/code]
e esta funcionado que é uma beleza
valeu