RE: Encoding of properties files

2006-10-28 Thread Firas Adiler
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

Re: Encoding of properties files

2006-10-28 Thread Martin Strand
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

Re: Encoding of properties files

2006-10-28 Thread Malin Ljungh
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

Re: ServletContextListener equivalent in Tapestry

2006-10-28 Thread KEGan
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 =

Re: Encoding of properties files

2006-10-28 Thread Martin Strand
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

Re: ServletContextListener equivalent in Tapestry

2006-10-28 Thread James Carman
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() {

Re: problem injecting service

2006-10-28 Thread Warner Onstine
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 /

Re: problem injecting service

2006-10-28 Thread Howard Lewis Ship
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

Re: problem injecting service

2006-10-28 Thread Warner Onstine
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