struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam brin <>
Subject i18N <> enum
Date Sat, 01 Mar 2014 15:31:19 GMT
Does anyone have a working example of a < 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:

 < list="enumTestList" name="test" label="enum test"  listValue=
"%{getText(name())}" >

thanks in advance,


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