Hi all, I just tried to use the export pluging in my Grails 1.3.8 app. I have followed all the instructions, and copied the example code into my controller, changing the class name of course. If I use the markup
in my GSP I get the error:
Module [export] depends on resource [/css/export.css] but the file cannot be found
when I load my list page. So if I change it to the old version
the page loads, but then when I choose one of the export options I get this error thrown:
ERROR errors.GrailsExceptionResolver - Exception occurred when processing request: [GET] /BlueAccounts/account/list - parameters:
java.lang.NullPointerException: Cannot invoke method export() on null object
thank you for choosing export plugin. I think the problem is the place
where you put "def exportService". The service will not get injected
when defined there. Please try to define it outside of the closure e.g.:
Thanks, that solved the immediate problem and I can now export a file. But now I find that it exports only the first n rows (n determined by the max parameter), regardless of which page I am on. Again, sorry if I am missing something..
Andreas, how can I pass a variable into the link to generate an Excel file? For example I can add a "?country=Germany" parameter to my list action and it only returns values for Germany. But the link from the Excel button does not include that parameter so it exports all the data for all countries - how do I get it to include it?