Re: Extending Template
2013/7/9 Alireza Fattahi : > Yes it is a typo. > I have this in the > struts.xml Anyway, this constant isn't needed if you don't change the default location ("template"). Right now there is a bit mess with theme support. Basically if you want to change theme globally you must copy all the parent templates into the new template. You can always use theme per tag, like below: Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Extending Template
Yes it is a typo. I have this in the struts.xml ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Tuesday, 9 July 2013, 11:12 Subject: Re: Extending Template 2013/7/9 Alireza Fattahi : > Hi, > > I want to extend the css_xhtml. > > 1- /WEB-INF/classes/template/mytemp > 2- Put the theme.properties in it . > 3- Add the parent = css_xhtml > 4- Update the the struts.xml as below: > > is it typo here or in your code? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Extending Template
2013/7/9 Alireza Fattahi : > Hi, > > I want to extend the css_xhtml. > > 1- /WEB-INF/classes/template/mytemp > 2- Put the theme.properties in it . > 3- Add the parent = css_xhtml > 4- Update the the struts.xml as below: > > is it typo here or in your code? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Extending Template Error
For the checkbox list try using collection notation for the checkbox names , square brackets with an index (list/array index). Dave On Apr 26, 2011 8:22 PM, "Zoran Avtarovski" wrote: > Hi guys, > > I'm having a couple of issues with my freemarker tempates. > > One is with extending the 'simple; theme. I have setup a custom theme which > has a theme.properties file containing a single line, parent=simple > > The problem I'm having is that it can't find the simple directory. > Freemarker keeps throwing an error. I had to create a freemarker template > file with an include of the simple template, <#include > "/${parameters.templateDir}/simple/fielderror.ftl" />. > > My struts.xml file contains value="template"/>. I don't know why it's not working. We recently upgraded > to 2.2.1 but I'm not certain if the problem existed prior to that. > > The other problem I have is trying to use the s:checkbox tag as opposed the > the checkboxlist tag. I need to create a customised checkbox display and I > want to use the following code: > > > key="field.label"/> > > > But the checkbox doesn't reflect the checkBoxArray value in the action. It > works when I use the s:checkboxlist tag, but I need finer control. > > Any help on either issue would be appreciated. > > Z. > >