Does anyone have a working example of a <@s.radio list tag that uses
localization of the labels? I've been searching the doc and stack overflow
but not finding things that are working?
e.g. if we have an enum:
enum EnumTest {
A, B, C;
}
and a getter on the controller:
public List<EnumTest> getEnumTestList() {
return Arrays.asList(EnumTest.values());
}
I would hope something like this would work, but it doesn't:
<@s.radio list="enumTestList" name="test" label="enum test" listValue=
"%{getText(name())}" >
thanks in advance,
adam