struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Creating Your Own Struts 2 Theme No Longer Works?
Date Tue, 16 Jul 2013 08:23:30 GMT
2013/7/15 bphillips@ku.edu <bphillips@ku.edu>:
> I'm updating the themes tutorial
> (http://struts.apache.org/release/2.3.x/docs/struts-2-themes.html) but
> cannot get my example application to work using the latest version of Struts
> 2.
>
> The example application is at
> http://code.google.com/p/struts2-examples/downloads/detail?name=Themes_Struts_2_Mvn_2_2_1.zip
> (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"
theme="KUTheme"/>

After that everything works.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message