Hello!
IMHO, if you don't want arbitrary strings in a field, you should create an
enum for that (in this case, Country) and use it as the type of your field
instead of String. Tapestry should automatically use a for editing
that.
But, even leaving your code the way it is, and I strongly recommen
Hi team,
Just a quick question: When using Tapestry's SelectModel to create a drop
down list of String options, is it possible to enforce this at the 'model'
tier through the use of an annotation?
With Java enumerations this is possible:
@Enumerated(EnumType.STRING)
private String countr