struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam brin <adam.b...@asu.edu>
Subject i18N <@s.radio> enum
Date Sat, 01 Mar 2014 15:31:19 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message