I had the same problem.  
I´ve created my own template, in theme.properties I put 'parent=css_xhtml' . 
I´ve copied controlheader.flt from template.css_xhtml to my template and
changed to :

<#include
"/${parameters.templateDir}/${themeProperties.parent}/controlheader.ftl" />
<#if parameters.labelposition?default("top") == 'top'>
<div <#rt/>
<#else>

</#if>
<#if parameters.id?exists>id="wwctrl_${parameters.id}"<#rt/></#if>
class="wwctrl">


NOTE : the first line cames with error :
<#include "/${parameters.templateDir}/css_xhtml/controlheader-core.ftl">
the correct is :
<#include
"/${parameters.templateDir}/${themeProperties.parent}/controlheader.ftl" />

this workaround resolved my problem


Herrera






Aymeric Levaux wrote:
> 
> Does this (https://issues.apache.org/struts/browse/WW-1328) means, that at
> this moment we cannot create our own theme with a theme.properties that
> specifies that we extend an other theme ?
> 
> I made a theme that extends xhtml and set it as the default one in
> struts.properties. But every template I didn't rewrite causes an exception
> when the related tag is used. The problem is that Struts does not look in
> the parent theme when it does not found a template.
> 
> What I don't understand is that this mechanism is working for the
> css_xhtml theme that does not redefine every templates and extends xhtml.
> 
> Am I missing something?
> 
> -- 
> Aymeric
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cannot-extend-a-theme-tf4217548.html#a12004747
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to