2013/7/17 [email protected] <[email protected]>: > Lukasz: > > I understand now. The change is that I have to put the theme attribute on > the s:form tag with a value of xhtml and then use the theme attribute on the > s:checkboxlist tag with a value of KUTheme (my custom check box list theme). > So the edit.jsp code is: > > <s:form action="save" method="post" theme="xhtml"> > <s:textfield key="personBean.firstName" /> > <s:textfield key="personBean.lastName" /> > <s:select key="personBean.sport" list="sports" /> > <s:radio key="personBean.gender" list="genders" /> > <s:select key="personBean.residency" list="states" listKey="stateAbbr" > listValue="stateName" /> > <s:checkbox key="personBean.over21" /> > <s:checkboxlist key="personBean.carModels" list="carModelsAvailable" > theme="KUTheme" /> > <s:submit key="submit" /> > </s:form> > > That is a change from the previous theme behavior (I don't know how long ago > the change was made). Previously I just had to put the theme attribute on > the s:form tag (e.g. theme="KUTheme") and then Struts 2 would look for the > ftl files in either the template directory in struts2-core or in a folder > named KUTheme (my theme name) in the template directory in my applications > webapp folder.
Yeah... I also cannot locate when/where the change was made - maybe it was related to Freemarker upgrade, hard to guess. That's why I would like to improve theme support (to meet what docs provide). Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
