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 <constant name="struts.ui.templateDir"
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:

 <s:iterator value="checkboxList" var="checkItem">
 <s:checkbox name="checkBoxArray" fieldValue="%{#checkItem.value}"
key="field.label"/> <s:property value="#checkBox.label" />
</s:iterator>

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.


Reply via email to