That looks OK. Please check your classpath, the .properties file must be in the same directory as the .jwc (and .html) files. You might have an Ant task building your WAR that is not copying over .properties files, for example.
The strack trace is more useful if you include the actual exception, so I'm having to guess. -- [EMAIL PROTECTED] http://tapestry.sf.net > > Hello all, > > I'm trying to use "Localization with Strings" feature of tapestry, > but for some reason I can't make it work. > > In my Home template (Home.html) I have a <span> tag: > > <span key="NameOfProduct">Localized Product Name</span> > > in the same folder I have a Home.properties file with: > > NameOfProduct=Transformador de Distribui��o a �leo > > (the default locale is Portuguese) and a Home_en.properties > file with: > > NameOfProduct=Oil Filled Distribution Transformers > > When I try to view the page I get an Exception: > > net.sf.tapestry.BaseComponent.readTemplate(BaseComponent.java:305) > net.sf.tapestry.BaseComponent.finishLoad(BaseComponent.java:472) > net.sf.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:321) > net.sf.tapestry.pageload.PageLoader.loadPage(PageLoader.java:463) > net.sf.tapestry.pageload.PageSource.getPage(PageSource.java:178) > net.sf.tapestry.engine.RequestCycle.getPage(RequestCycle.java:223) > net.sf.tapestry.engine.HomeService.service(HomeService.java:70) > net.sf.tapestry.engine.AbstractEngine.service(AbstractEngine.java:747) > net.sf.tapestry.ApplicationServlet.doService(ApplicationServlet.java:198) > cio.TapestryCIOServlet.doService(TapestryCIOServlet.java:33) > net.sf.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:163) > javax.servlet.http.HttpServlet.service(HttpServlet.java:126) > javax.servlet.http.HttpServlet.service(HttpServlet.java:103) > com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9 > 6) > com.caucho.server.http.Invocation.service(Invocation.java:311) > com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) > com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221) > com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) > com.caucho.server.TcpConnection.run(TcpConnection.java:137) > java.lang.Thread.run(Thread.java:536) > > > Do I have to bind the template with the propertie file somehow? > What am I missing? > > Thanks, > > Luis Neves > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
