Setting/Overriding the Locale
Hi there! I was wondering how ThreadLocale's Locale can be set depending on its URL/domain/subdomain I am injecting ThreadLocale to contributeRequestHandler in AppModule: public void contributeRequestHandler(OrderedConfiguration configuration, @Local RequestFilter filter, final ThreadLocale threadLocale) { Map serverNameMappings = new HashMap(); serverNameMappings.put("www.domain.de", Locale.GERMAN); serverNameMappings.put("subdomain.domain.de", Locale.ENGLISH); configuration.add("HostBasedLocalization", new HostBasedLocaleFilter(threadLocale, serverNameMappings), "after:Localization"); } The HostBasedLocaleFilter looks like this: public class HostBasedLocaleFilter implements RequestFilter { private Map serverNameMapping; private ThreadLocale threadLocale; public HostBasedLocaleFilter(final ThreadLocale threadLocale, final Map serverNameMapping) { this.serverNameMapping = serverNameMapping; this.threadLocale = threadLocale; } public boolean service(Request request, Response response, RequestHandler handler) throws IOException { String servername = request.getServerName(); Locale locale = this.serverNameMapping.get(servername); if (locale == null) { locale = Locale.ENGLISH; } threadLocale.setLocale(locale); return handler.service(request, response); } } However, accessing the page from a subdomain does not change the Locale. Thanks! Tobias - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
AW: Tapestry Scaling
Hi Ben! Are you going to use a CDN to deliver the website in the future? Thanks! Tobias -Ursprüngliche Nachricht- Von: Ben Gidley [mailto:b...@gidley.co.uk] Gesendet: Tuesday, March 02, 2010 9:20 AM An: Tapestry users Betreff: Tapestry Scaling Hi, I thought it was worth posting an update on the launch of http://www.seesaw.com/ - we launched the site to the public this month. The site has seen a lot of visitors over its launch period (I am not allowed to release actual stats) but Alexa shows us just as the 1200 most popular site in the UK. Our load testing has shown the site scaling to 33 pages/second (the transactions/second is a lot higher if you include images/javascript/css). The key things this has demonstrated are - T5 hasn't got in production any inevitable memory leaks - Performance doesn't degrade over time We are also very pleased with how our migration to Tapestry has worked out - we have a lot of nice (reusable) components that gives our editorial team a good degree of control over the site. We are hoping the user base will now start to grow - as we are starting TV adv Ben Gidley www.gidley.co.uk b...@gidley.co.uk - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
AW: [Tapestry Central] March of Progress
You need the marketing of RubyOnRails for Tapestry - combined with a good IDE and "plugins" for common use-cases (e.g. authentication)...then more people might use Tapestry and the number of user-contribution rises. The best webframework is not very useful without a big community behind it. Or: Even bad frameworks become useful if there is a big community behind it as most frameworks and software live of user-contributed code. http://www.alexa.com/siteinfo/cakephp.org http://www.alexa.com/siteinfo/rubyonrails.org http://www.alexa.com/siteinfo/joomla.org http://www.alexa.com/siteinfo/drupal.org Also, from a business point of view, the bigger the market, the more attractive as specific framework...so there is many factors why "marketing" a framework should not be underestimated. Just my 2 cents... Tobias -Ursprüngliche Nachricht- Von: Howard [mailto:hls...@gmail.com] Gesendet: Monday, February 22, 2010 7:15 PM An: users@tapestry.apache.org Betreff: [Tapestry Central] March of Progress Or should that be "Late February of Progress". I have to say I'm a bit envious right now of Rich Hickey ... I can see that he's continuing on like a steam roller, extending and improving Clojure. I guess he's having some success in generating Research and Design budget from funding companies. I can see, following his threads, that he's working on yet more concurrency metaphors for Clojure, which is a good thing (though eventually there'll need to be a big book just to describe them all). I'm on a different track, in that I fund Tapestry out of pocket while doing training and project work. In some cases, those merge, such as when I add specific features to Tapestry for a specific client. I'm of two minds here: doing project work keeps me grounded in real requirements for Tapestry. I see what works really well, and what needs some polishing. On the other hand, I come up with ideas for new components, improvements, and integrations all the time and barely have enough free time (between clients, ordinary Tapestry maintenance, and this special project) to even document my ideas, never mind implement, test and distribute them. So, should I set up a funding option like Rich's? Well, that wouldn't help my current clients (I'm committed to getting their apps into production), but it may change how I would look for future work. -- Posted By Howard to Tapestry Central at 2/22/2010 10:15:00 AM - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
AW: ognl question
Yes, but instead of {ognl:someMethod} you write ${getSomeMethod()} -Ursprüngliche Nachricht- Von: Ken in nashua [mailto:nhhockeypla...@hotmail.com] Gesendet: Thursday, November 19, 2009 2:41 PM An: users@tapestry.apache.org Betreff: ognl question Folks, OGNL is used in t4. Is it being used in t5 ? If not what is the improv for OGNL in t5. Best regards Ken in New Boston _ Windows 7: I wanted simpler, now it's simpler. I'm a rock star. http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
OGNL expressions in Tapestry 5
Why are the following ognl expressions not supported anymore in the latest Tapestry5 version? ${method.getSomething()} ${method.getSomething(´some constant´)} ${ognl:method.getSomething(´some constant´)} and how does this work now? Thanks! Toby