You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nathan Quirynen <na...@pensionarchitects.be> on 2020/04/08 10:49:59 UTC

Contribute messages resource in non component lib

Hi all,

I want to contribute a messages source in a Tapestry module of a 
dependency project which is not a components library.
In our components library we added following in our module:

     public static void contributeComponentMessagesSource(
             @Value("***/ComponentsLib.properties") Resource componentsLib,
             OrderedConfiguration<Resource> configuration) {
         configuration.add("ComponentsLib", componentsLib);
     }

But this does not seem to work in a non components library module, is 
this correct? In what way can I contribute it?


Nathan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Contribute messages resource in non component lib

Posted by Nathan Quirynen <na...@pensionarchitects.be>.
Nevermind, it does seem to work, but I had to @ImportModule the module 
in my web app.

Op 8/04/20 om 12:49 schreef Nathan Quirynen:
> Hi all,
>
> I want to contribute a messages source in a Tapestry module of a 
> dependency project which is not a components library.
> In our components library we added following in our module:
>
>     public static void contributeComponentMessagesSource(
>             @Value("***/ComponentsLib.properties") Resource 
> componentsLib,
>             OrderedConfiguration<Resource> configuration) {
>         configuration.add("ComponentsLib", componentsLib);
>     }
>
> But this does not seem to work in a non components library module, is 
> this correct? In what way can I contribute it?
>
>
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org