Hi Dan,

Thanks - nice elegant looking solution.

But I'm getting an exception, I must be missing something in the setup? :

20:10:40,374  [RequestCycleExtra    qtp576936864-17 WARN ]  Handling the
following exception
org.apache.wicket.WicketRuntimeException: No Page found for component
[ActionPanel [Component id = content]]
        at org.apache.wicket.Component.getPage(Component.java:1722)
        at
org.apache.isis.viewer.wicket.ui.actionresponse.ActionResultResponseHandlingStrategy$3.handleResults(ActionResultResponseHandlingStrategy.java:65)
        at
org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:254)
        at
org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:195)
        at
org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:106)
        at
org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.<init>(ActionPanel.java:84)
        at
org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49)



On Sun, November 22, 2015 17:37, Dan Haywood wrote:
> 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/a
> pache/isis/applib/services/dto/Dto_downloadXml.java#L56
>
>
> On 22 November 2015 at 15:51, Kevin Meyer <ke...@kmz.co.za> 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
>>
>>
>>
>>
>


-- 
Kevin Meyer
Ljubljana, Slovenia


Reply via email to