Sure, sorry i didn't explain myself.
Here's what has to be donne:
- Create a class that implements
org.apache.tapestry.services.ComponentMessagesSource.
- In hivemodule.xml add:
<implementation service-id="tapestry.ComponentMessagesSource">
<create-instance
class="org.mypackage..MyComponentMessagesSourceImpl"/>
</implementation>
And that's it.
Hope this helps.
Cheers
Hugo
Ron Piterman wrote:
Great.
Since all ov this is quite new (to me), could you *please* show the
syntax?
Thanx,
Ron
ציטוט Hugo Palma:
All you have to do is provide your implementation of
ComponentMessagesSource to hivemind service
"tapestry.ComponentMessagesSource".
http://jakarta.apache.org/tapestry/tapestry/hivedocs/service/tapestry.ComponentMessagesSource.html
Cheers
Hugo
Denis Souza wrote:
Hi,
How can I override the default implementation for message
localization in
Tapestry 4? In Tapestry 3 I would simply override the page/component's
getMessage() method to retrieve the messages from a database and
create a
log entry in case the key was missing. In Tapestry 4 it seems to
work a bit
different. There is no getMessage() method to override. What would I
need to
get the same effect on Tapestry 4?
Thanks,
Denis Souza
---------------------------------------------------------------------
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]