Hi John,

The type converter doesn't need to be given the field name. The field name
is automatically provided as the {0} parameter when constructing the
error message from the resource bundle, and {1} the value entered by the
user. Ideally you use a ScopedLocalizableError, so that the user of your
type converter can make good use of the lookup strategy to organize
resource bundle keys.

I agree that it would be useful for the type converter to be given more
context. Perhaps just the ActionBean, because from there you can get the
ActionBeanContext, then the request, response, session, ...

Cheers,
Freddy



------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to