Tapestry's already got a mechanism for translating an enum (e.g. LAST_NAME)
to a human-readable value (e.g. Last Name) which can also be overridden in
the properties.  Is there an easy way to get access to that in order to
reuse it in validation messages?  Seems silly to do this another way when
there's a perfectly good UI model for this already.
  I could inject the Select, but that won't give me access to the
SelectModel.  I guess I could construct the EnumSelectModel instance
myself using injected messages and my own knowledge of the enum class?
>From there I could run through the OptionModel instances, compare the vaules
and get the label.  It's a little painful, but looks workable.

Is there an easier path someone's found?

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to