What file are you expecting it to read those message definitions from?

-----Original Message-----
From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Bulling
Sent: Monday, May 01, 2006 2:20 PM
To: Tapestry users
Subject: Localized messages in service

Hi folks,

probably it's a not very difficult question concerning localized
messages in a service but as I have absolutely no idea what I could
have done wrong here I am ;)

That's the way I defined my service in hivemodule.xml:

<service-point id="StatisticService"
interface="de.plattform.services.StatisticService">
        <invoke-factory model="threaded">
                <construct
class="de.plattform.services.StatisticServiceImpl"/>
        </invoke-factory>
</service-point>

That's my service's constructor:

public StatisticServiceImpl(Operations operations, Messages messages)
{
        this._operations = operations;
        this._messages = messages;
}

When debugging I can see that _messages isn't null but I'm not
able to get localized messages with for example

String xAxisLabel = _messages.getMessage("month");

What's wrong here?

Thanks in advance!
  Andreas

---------------------------------------------------------------------
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]

Reply via email to