Re: Returning content as file...?

2015-11-25 Thread Dan Haywood
> On 24 November 2015 at 19:02, Kevin Meyer wrote: > >> I've added the project to github on [1]. Sorry - I've not put much effort >> into consolidating the menu/service actions, most of them are visible even >> when not appropriate. >> >> I've implemented the "convert and send as

Re: Returning content as file...?

2015-11-24 Thread Kevin Meyer
I've added the project to github on [1]. Sorry - I've not put much effort into consolidating the menu/service actions, most of them are visible even when not appropriate. I've implemented the "convert and send as file" as a service at [2]. For convenience, I've created a fixture script. After

Re: Returning content as file...?

2015-11-24 Thread Kevin Meyer
On Mon, November 23, 2015 23:58, Dan Haywood wrote: > OK, thanks for that Martin. Makes me wonder why it works in other > circumstances, though. > Yes, I'm running against 1.10.0 > Kevin... could you mail (the relevant bits of) the action any > annotations, is it on a menu service, or a

Re: Returning content as file...?

2015-11-23 Thread Dan Haywood
OK, thanks for that Martin. Makes me wonder why it works in other circumstances, though. Kevin... could you mail (the relevant bits of) the action any annotations, is it on a menu service, or a contribution service, or a domain entity or view model or mixin? Would like to try to reproduce

Re: Returning content as file...?

2015-11-23 Thread Martin Grigorov
Hi, On Sun, Nov 22, 2015 at 8:25 PM, Dan Haywood wrote: > umm, ok... no clues there unfortunately. Any Javascript errors in Chrome's > console? > > Also, which version are you running against? I'm guessing 1.10.0 ? > > > On 22 November 2015 at 19:22, Kevin

Returning content as file...?

2015-11-22 Thread Kevin Meyer
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)"

Re: Returning content as file...?

2015-11-22 Thread Dan Haywood
umm, ok... no clues there unfortunately. Any Javascript errors in Chrome's console? Also, which version are you running against? I'm guessing 1.10.0 ? On 22 November 2015 at 19:22, Kevin Meyer wrote: > Let me turn off one component factory that I create, but don't use.. > >

Re: Returning content as file...?

2015-11-22 Thread Kevin Meyer
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 [RequestCycleExtraqtp576936864-17 WARN ] Handling the following exception org.apache.wicket.WicketRuntimeException: No Page found for component

Re: Returning content as file...?

2015-11-22 Thread Dan Haywood
Probably need to see some more of the stack trace. You could also run in debug and set a breakpoint as to when the first exception is thrown, to provide a bit more context.. D On 22 November 2015 at 19:13, Kevin Meyer wrote: > Hi Dan, > > Thanks - nice elegant looking