Malin,
It has nothing to do with Tomcat. It's a Java thing, really. Properties
files are not unicode, wich means that non-ASCII characters need to be
encoded. Usually your IDE should take care of this for you (in Netbeans this
support is built-in).
In Eclipse I'd recommend Eclipse
This is true for regular ResourceBundles, but not for Tapestry message
catalogs.
With Tapestry you can use any encoding, just make sure the file's encoding
matches the org.apache.tapestry.messages-encoding setting. Like this:
meta key=org.apache.tapestry.messages-encoding value=utf-8/
and
Thank you thank you thank you!!! Tack ;)
It works :D *happy*
Though, I had to go in manually on the file properties and change it to UTF8
in Eclipse. I guess I can change the default somewhere ...?
Malin
On 10/28/06, Martin Strand [EMAIL PROTECTED] wrote:
This is true for regular
Hi,
I have tried both approches. However, inside my code, I am trying to access
Hivemind services, and it didnt work.
Example, in my custom ApplicationInitializer, I use:
Registry registry = RegistryBuilder.constructDefaultRegistry();
MyService myservice =
Japp.
1. Go to Preferences--General--Content types
2. Select Text--Java properties file
3. Change the default encoding at the bottom
Martin
On Sat, 28 Oct 2006 12:45:08 +0200, Malin Ljungh [EMAIL PROTECTED]
wrote:
Thank you thank you thank you!!! Tack ;)
It works :D *happy*
Though, I
You let HiveMind inject stuff into your service that runs at startup:
public class MyStartupClass implements Runnable
{
private MyService myService;
public void setMyService( MyService myService )
{
this.myService = myService;
}
public void run()
{
Ok,
I've updated the getName():
public String getName() {
return ical;
}
which now matches the definition in the hivemodule.xml:
contribution configuration-id=tapestry.services.ApplicationServices
service name=ical object=service:ICalService /
Try changing to:
@InjectObject(engine-service:ical)
public abstract IEngineService getIcal();
On 10/28/06, Warner Onstine [EMAIL PROTECTED] wrote:
Ok,
I've updated the getName():
public String getName() {
return ical;
}
which now matches the definition in the
After some more diging I decided to try some other things and now
have a new (stranger error).
I removed the injectobject annotation and replaced it with this in
the UpcomingEvents.page:
inject property=icalService
object=service:eventscalendar.ICalService/
I also lower-case the c on the