LT
unread,Apr 10, 2012, 4:17:07 PM4/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ttpub-user
I saw a post a while back requesting the ability to export out holiday
schedules. We've come to that point in our service where we are
creating these "optional" schedules during certain times of the year,
but I have been unable to figure out how to work with the data. I was
able to successfully add an option to view them on the config page,
but I'm stymied on how to export them. I tried fiddling with the
Freemarker template, and now I have the following error when I switch
to the "Print" page:
Expression Parameters.HOL is undefined on line 83, column 41 in
timetable.print.
The problematic instruction:
----------
==> ${Parameters.HOL} [on line 83, column 39 in timetable.print]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression Parameters.HOL
is undefined on line 83, column 41 in timetable.print.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:
124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.process(Environment.java:176)
at freemarker.template.Template.process(Template.java:232)
at
freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:
427)
at
freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:
366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
849)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
454)
at java.lang.Thread.run(Thread.java:680)
I think I read somewhere that I was going to have to recompile for
this to work, but that's a bit beyond my skill (as is even playing
with the Freemarker template, but I thought I'd try). A "professional"
solution would be better, I think. Thanks!