Well ... I haven't used this ... but if you take a look at the
tapestry.asset.xml you'll see that there is a "AssetFactories"
contribution like :
<contribution configuration-id="AssetFactories">
<factory prefix="context" object="service:ContextAssetFactory"/>
<factory prefix="classpath" object="service:ClasspathAssetFactory"/>
</contribution>
For this I think you have to implement "AssetFactory" and make a
service-point then add it to the contribution (with your own chosen
prefix).
Hope this is what you need,
Andrei Chiritescu
soir wrote:
Thank you! This is for the messages, isn't it? But how Tapestry looks up for
localized pictures?
Andrei Chiritescu-3 wrote:
You could try implementing "ComponentMessagesSource" (or extending
"ComponentMessagesSourceImpl" to make it easier).
Then add this to your hivemind module :
{code:xml}
<implementation service-id="tapestry.ComponentMessagesSource">
<invoke-factory>
<construct
class="be.unid.tapestry.messages.UnidComponentMessagesSourceImpl">
<event-listener service-id="tapestry.ResetEventHub"/>
<set-object property="componentPropertySource"
value="infrastructure:componentPropertySource"/>
<set-object property="servletContext"
value="service:tapestry.globals.ServletContext"/>
</construct>
</invoke-factory>
</implementation>
{code}
Regards,
Andrei Chiritescu
soir wrote:
Hello, I am looking for same solution too. I need to store properties
files
and localized pictures in some directory on the server, outside Tapestry
application. Does anybody knows how I can tell Tapestry look up for the
localized content in some other directory, not in WEB-INF?
Sincerelly yours,
Igor
Peter Dawn wrote:
guys,
my web app has a lot of properties files now and its beginning to look
cluttered. is there a way to put the properties files in a separate
folder and not in the same root folder as the html file.
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]