injection via annotations to fields is only possible for pages,
components...

for pages and comps byte code is changed and greater flexibility is
possible,
for services that tapestry autobuilds, tapestry will use the constructor
with most parameters,

everything else you must connect your self..

...

you can inject message catalog to the page,
and then forward it to the business object before creating the report

Davor Hrg

On Wed, Jul 9, 2008 at 10:47 AM, Udo Abel <[EMAIL PROTECTED]> wrote:

> Hi,
>
> is it possible to use the Tapestry Localization (message catalog) outside
> of pages and components, e.g. in business objects creating reports?
>
> A simple
>    @Inject
>    private Messages messages;
> doesn't work.
> Of course Tapestry could supply messages from the main application catalog
> only, but since pages-specific catalogs are usually override existing
> application messages, that would be sufficient.
>
> If thats not possible we must minic the name-decoration used by tapestry to
> load the best matching properties file, or is there another approach?
>
> Thanks,
> Udo.
>
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to