I have made an example app and it works
https://github.com/lukaszlenart/struts2-theme-inherit

2015-05-05 8:12 GMT+02:00 Zoran Avtarovski <zo...@sparecreative.com>:
> Hi Lucasz,
>
>>>I had copied all the missing simple templates into my mobile template
>>
>>don't do it, Struts will find them. Just override those templates which
>>you need
>
> I don¹t think I was clear enough here. If I don¹t include the file the
> error is thrown. The issue I have is struts doesn¹t find them working up
> the chain.
>
>
>>
>>Maybe because of hardcoded "simple" - and it happens that not all
>>templates were adjusted to be "expandTheme" friendly ;)
>>
>>>
>>> The mobile select.ftl template is simply:
>>>
>>> <#include
>>>
>>>"/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl"
>>>/>
>>> <#include "/${parameters.templateDir}/simple/select.ftl" />
>>
>>You shouldn't hardcode "simple" here, use "expandTheme" to tell Struts
>>to check your theme first and than parent theme.
>
> I was just following the guidelines. If I don¹t hardcode simple aren¹t I
> at risk of a circular reference, as the file will simply reference itself?
>
>
> Z.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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

Reply via email to