I am struggling with the whole "extending theme" functionality in struts2. Either I'm doing something incredibly stupid or there's an issue with extending themes in struts2 (2.1.2 to be more clear). From what I've gathered from the Struts 2.x documentation is that I should be able to just simply define my own custom theme, configure the theme name and template directory, create a theme.properties file with the parent=css_xhtml and be done. No need to add anything other than that. Am I wrong to assume this ? In doing so I get some unexpected errors:
java.io.FileNotFoundException: Template /templates/ccast2_0/form-close.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.template.Configuration.getTemplate(Configuration.java:452) at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:121) at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:558) at org.apache.struts2.components.UIBean.end(UIBean.java:512) at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42) at org.apache.jsp.struts2.login_jsp._jspx_meth_s_005fform_005f0(login_jsp.java:176) at org.apache.jsp.struts2.login_jsp._jspService(login_jsp.java:83) Why in the world is it looking for the form-close.ftl file if I'm extending a theme ? It should be looking for that file in the css_xhtml theme. If it's not there it should look in the xhtml theme, etc, etc. It seems to work for the themes in the struts2 jar. Why doesn't it work for me ???? Here's what I've done: /WEB-INF/classes/struts.properties: struts.ui.theme=ccast2_0 struts.ui.templateDir=templates /templates/ccast2_0/theme.properties parent=css_xhtml Please advise because this is so annoying. - Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]