If you return an org.apache.isis.applib.value.Clob, where you can specify the filename and media type.
If you wanted to return a zip file or other binary content, use org.apache.isis.applib.value.Blob. For example, see [1] Cheers Dan [1] https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/apache/isis/applib/services/dto/Dto_downloadXml.java#L56 On 22 November 2015 at 15:51, Kevin Meyer <[email protected]> wrote: > Hi, > > I'm sure this has been described before, but could someone point me to > some instructions on how to have the output from a service sent back to > the user as a file? (markmail is good, but I'm struggling with what to > search for!) > > For example, I want the results of "printToLatex(Report report)" to be > sent back the the user as a LaTeX file with a name derived from > report.getName(). > My method signature right now is "String printToLatex(Report report)". > > How does this differ from the service action "printToHtml(Report report)" > which should return only the resulting HTML to the browser? Is that > possible? > > Thanks in advance, > Kevin > > -- > Kevin Meyer > Ljubljana, Slovenia > > >
