Yes, my page is referencing the other templates e.g. actionerror.
If you look at http://struts.apache.org/2.0.6/docs/extending-
themes.html it states that:
'An extended theme does not need to implement every single template
that the Struts Tags expect. It only needs to implement the templates
that change. The other templates are loaded from the parent template.'
This is the same method that the standard themes (ajax, xhtml..)
use. Both themes ajax and xhtml use the actionerror.ftl from the
simple theme.
I don't think that this is the problem.
Thanks for the idea.
Paul.
On 3 Apr 2007, at 14:58, Ian Roughley wrote:
Wait - I think I see the issue. Have you extended the actionerror
template as well as the tree-* templates? Is this template being
referenced from within the tree-* template or as another tag on the
page?
/Ian
[EMAIL PROTECTED] wrote:
Hi Ian,
I tried adding my theme in both the root of the application and
inside the WEB-INF/classes directory as from reading the source
code both are used for pulling in themes/templates.
I was going to try a build from the head of svn to see if the
problem has been fixed along the way.
Regards,
Paul.
On 3 Apr 2007, at 13:59, Ian Roughley wrote:
Is the template directory (from "/template/galleryadmin/
actionerror.ftl") at the root of the web applications content files?
/Ian
[EMAIL PROTECTED] wrote:
Hello again,
After a day of still getting nowhere in trying to extend a
template and having no response from the list. Should I add
this as a bug in Jira?
Thanks,
Paul.
On 2 Apr 2007, at 12:37, [EMAIL PROTECTED] wrote:
Hello all,
I'm having problems extending a default theme with Struts
2.0.6. I am in the process of creating my own theme and have
added templates for various tree-*.ftl files.
I've tried adding a theme.properties file with:
parent = ajax
However on ever page that I try and use any of the struts tags
I get errors like:
Apr 2 12:10:12 192.168.10.13 12: 10:12 ERROR
FreemarkerTemplateEngine () - Could not load template /template/
galleryadmin/actionerror
Apr 2 12:10:12 192.168.10.13 12: 10:12 ERROR
UIBean () - error when rendering
Apr 2 12:10:12 192.168.10.13 java.io.FileNotFoundException:
Template /template/galleryadmin/actionerror.ftl not found.
Apr 2 12:10:12 192.168.10.13 at
freemarker.template.Configuration.getTemplate
(Configuration.java: 489)
Apr 2 12:10:12 192.168.10.13 at
freemarker.template.Configuration.getTemplate
(Configuration.java: 452)
...
I read in the extending themes guide that adding a
theme.properties file is all I need to do to only implement the
templates that I change. Am I missing something simple?
Extra information:
- I'm setting the theme name in my action class.
- When setting the theme name to any of the supplied themes
with Struts 2 e.g(ajax or xhtml), everything works as expected.
Thanks for any help,
Paul.
------------------------------------------------------------------
---
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]