Re: InvalidReferenceException with big data
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Are you sure it's not that some of the columns (in the row) are Java
null-s? If instead of ${column} you write ${column!"null"}, wont the
"null"-s be in cells that are indeed supposed to be empty?
Another thing... You have this:
<#if c_has_next>&</#if><#if ! c_has_next>\\</#if>
It works, but it would be nicer (and faster) this way:
<#if c_has_next>&<#else>\\</#if>
Sunday, June 13, 2010, 2:16:30 PM, Erwin Mueller wrote:
> Hi,
> I have a small project of my own where I use the freemarker template library
> to generate Latex code which I use to generate Pdf files. I use this small
> template for a table (attachment I)
>
> All works good, if I have a small amount of data, but with some big data I get
> the exception (attachment II)
>
> I tested it with ca. 3000 entries, then I get the exception. Is there a way in
> freenode to have streams or other mechanism to use the templates with big
> amount of data?
>
> Right now I'm using a HashMap for the root node that contains a ArrayList that
> is used for the rows and columns.
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo