I get a JspException: Template outputText_begin.ftl not found when using the
1.1.7 snapshot of tomahawk sandbox
---------------------------------------------------------------------------------------------------------------
Key: TOMAHAWK-1069
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1069
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Template Renderer
Affects Versions: 1.1.7-SNAPSHOT
Reporter: michael librodo
When I try to incorporate the tomahawk sandbox extension (1.1.7 snapshot) to my
project, I get the exception:
JspException: Template outputText_begin.ftl not found
Caused by: java.io.FileNotFoundException: Template outputText_begin.ftl not
found.
at freemarker.template.Configuration.getTemplate(Configuration.java:489)
at freemarker.template.Configuration.getTemplate(Configuration.java:452)
at
org.apache.myfaces.renderkit.freemarker.DefaultTemplateEncoder.encodeTemplate(DefaultTemplateEncoder.java:49)
at
org.apache.myfaces.renderkit.freemarker.TemplateRenderer.encodeTemplate(TemplateRenderer.java:91)
at
org.apache.myfaces.renderkit.freemarker.TemplateRenderer.encodeBegin(TemplateRenderer.java:44)
at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:664)
...
After digging through the issue there seems to be two issues:
1) In org.apache.myfaces.renderkit.freemarker.DefaultTemplateEncoder, it calls
line 47: TemplateLoader templateLoader = new
ClassTemplateLoader(renderer.getClass(), template);
I believe it should call the one argument constructor TemplateLoader
templateLoader = new ClassTemplateLoader(renderer.getClass()); since template
is not a path to the template.
2) Also, (although Im not definite about this), the resources found in
src/main/resources/org/apache/myfaces/renderkit/html/ext/template
(outputText_begin.ftl) should be relocated to
src/main/resources/org/apache/myfaces/renderkit/html/ext/
and the en_us locale is missing outputText_begin_en_US.ftl.
I believe those are the issues and the workarounds.
Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.