public class InternetAddressListConverter extends Object implements org.apache.wicket.util.convert.IConverter<List<javax.mail.internet.InternetAddress>>
List
of InternetAddress
email address.
Because of the fail that is Java Erasure, this cannot be added to a converter locator (at run-time, all the
converter locator sees is List
not List<InternetAddress>
, therefore cannot match
the converter.) You need to subclass your TextFields like this:
add(new TextField<List<InternetAddress>>("emailAddressList") { public IConverter getConverter() { return new InternetAddressListConverter(); } }.setConvertEmptyInputStringToNull(false));
Constructor and Description |
---|
InternetAddressListConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
convertEmailAddressListToString(List<javax.mail.internet.InternetAddress> val)
Deprecated.
|
List<javax.mail.internet.InternetAddress> |
convertToObject(String str,
Locale arg1)
Deprecated.
|
String |
convertToString(List<javax.mail.internet.InternetAddress> val,
Locale arg1)
Deprecated.
|
public List<javax.mail.internet.InternetAddress> convertToObject(String str, Locale arg1)
convertToObject
in interface org.apache.wicket.util.convert.IConverter<List<javax.mail.internet.InternetAddress>>
public String convertToString(List<javax.mail.internet.InternetAddress> val, Locale arg1)
convertToString
in interface org.apache.wicket.util.convert.IConverter<List<javax.mail.internet.InternetAddress>>