struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul.edmond...@fifeventures.co.uk
Subject Re: [S2] Problems extending a theme
Date Tue, 03 Apr 2007 15:21:17 GMT
Thanks David,

That has fixed my problem.  I can now extend a template.  I'll look  
forward to new inheritance implementation.

Kind regards,


Paul.


On 3 Apr 2007, at 15:38, David H. DeWolf wrote:

>
>
> paul.edmondson@fifeventures.co.uk 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?
>
> Yes and no.  The inheritance implementation in the themes does not  
> work that nicely.  Try copying all of the templates from the ajax  
> theme into your custom theme and it should work.
>
> Yes, this is a maintenance nightmare, but there is an issue for it  
> already.
>
> https://issues.apache.org/struts/browse/WW-1328
>
> David
>
>
>> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message