struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <>
Subject Re: Creating Your Own Struts 2 Theme No Longer Works?
Date Tue, 16 Jul 2013 08:23:30 GMT
2013/7/15 <>:
> I'm updating the themes tutorial
> ( but
> cannot get my example application to work using the latest version of Struts
> 2.
> The example application is at
> (I'm updating this code and moving it to our Struts sandbox subversion
> repository).
> Previously, I thought to create a new theme for a tag you just copied the
> tag's theme (e.g. checkboxlist.ftl) to a new file with the same name but in
> a directory named /template/[your theme name]/  that is under web app.
> However this seems to no longer work as I'm getting an error that FreeMarker
> is no looking for all tag theme definitions (e.g. text.flt, select.ftl)
> under /template[your theme name]/.
> Any help getting this to work would be great - our Struts 2 documentation on
> creating your own theme for a tag is lacking.

I have checked out the code and the only problem is missing "theme"
attribute on <s:checkboxlist/>, it should like below:

<s:checkboxlist key="personBean.carModels" list="carModelsAvailable"

After that everything works.

+ 48 606 323 122

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message