Github user abrin commented on a diff in the pull request:
https://github.com/apache/struts/pull/7#discussion_r10777092
--- Diff: core/src/main/resources/template/simple/checkboxlist.ftl ---
@@ -29,7 +29,13 @@
<#else>
<#assign itemKey = stack.findValue('top')/>
</#if>
- <#if parameters.listValue??>
+ <#if parameters.listValueKey??>
+ <#-- checks the valueStack for the 'valueKey.' The valueKey is then
looked-up in the locale
+ file for it's localized value. This is then used as a label -->
+ <#assign itemValue = stack.findString(parameters.listValueKey)/>
+ <#-- FIXME: find a better way to get the value than a call to @s.text
-->
--- End diff --
We're definitely not using a different implementation of FreemarkerManager
as far as I know -- We are using the sitemesh plugin. I'm reticent to pursue
this much further though as I cannot get struts.getText() to return any
localized values, even with the built-in struts messages. I would think if
`${struts.getText('struts.messages.invalid.token')` returned the localized
value, I'd be all right, but it's returning null.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]