|
From: Seth L. <se...@eh...> - 2004-03-01 18:59:51
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| (2) Improve the handling of Errors objects to allow message resources
to be
| specified as arguments that would not be resolved to their corresponding
| messages until reaching the view. I really like this solution, but I have
| not thought it through completely. One more note: since the errorArgs
| parameter is an array of Objects (not an array of Strings), maybe there
| would be a way to use a "Message" object that would be resolved at a later
| time, while preserving the current functionality of Strings that are used
| directly as arguments. For all I know, there is already a way to do
this (it
| seems logical enough), and I just don't know about it. This J2EE stuff
is so
| hard to keep up with...
Daniel,
I asked the list this exact question last week! We're running into the
same problems. :)
I like your option (2). For a quick solution over here, we did this: if
the String in the errorArgs array is this: "${something.key}" then we
treated that as a message key. This is close to your proposal to place
Message objects into the errorArgs array.
I hope that helps.
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAQ4U95EIB1scRes8RAtfZAKCEp0T69XvVBXfxg9d7YUJIqS68PQCcD5cY
vWqs9ssqri9zLhw9i1zSIZ4=
=2ubC
-----END PGP SIGNATURE-----
|