Following the struts2 extending theme
tutorial[http://struts.apache.org/2.0.14/docs/extending-themes.html] I
created a new theme "better" that extends the "simple" theme available
with struts. I created theme.properties file in folder theme/better/
and also copied and modified radiomap.ftl
theme.properties:
--------------------------
parent=simple
-------------------------
jsp snippet
----------------------------------------------------------------------------------------
<s:form theme="better">
<s:radio list="{'RED','BLUE'}" theme="better"></s:radio>
</s:form>
----------------------------------------------------------------------------------------
this code gives and error
----------------------------------------------------------------------------------------
java.io.FileNotFoundException: Template /template/better/form.ftl not found.
----------------------------------------------------------------------------------------
but when I remove theme="better" from form tag it works fine
working jsp snippet
----------------------------------------------------------------------------------------
<s:form theme="better">
<s:radio list="{'RED','BLUE'}" theme="better"></s:radio>
</s:form>
----------------------------------------------------------------------------------------
does this mean that I have to copy all the .ftl files in the
themes/better directory? in struts code jar file i found that xhtml
theme extends simple theme but it doesn't copy all files from simple
theme.
What is a better way of extending the theme?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]