Locale switching question
Hello folks, please share your experience. What is he best way to implement locale switching in Tapestry applications? Say, your application supports English and German and there is a link to switch from one language to another. The problem is: if you just change the engine's locale in the link listener and return the same page - that page will still be in the old (now wrong) locale! Seems to be an old Tapestry issue, the solution would be to display another page. But that is VERY nasty, suppose I want to be able to change language on every page - do I have to double the number of pages in my application??? There must be some clean way (or smart trick), right? TIA Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Re: how to force initial Locale
Ron, thanks for answering, but... Can you maybe give an exact link? AHHH - OK, got it, it's under TipsAndTricks! Will try it right now Doesn't work! Although the engine's locale gets set correctly, the page's locale gets the wrong value (why???)! Ok, I override the page method setLocale too, and it seems to work now. Seems very much like a hack actually. Hopefully there will be a clean way in a future version. Also the fact that I have to have two versions of my first application page (LoginDE and LoginEN for German and English respectively) is not good. Thanks all the same. Oleg -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Ron Piterman Gesendet: Montag, 29. Mai 2006 12:07 An: users@tapestry.apache.org Betreff: Re: how to force initial Locale take a look at the wiki: tapestry 4 -> how tos Cheers, Ron Bondarenko, Oleg wrote: > I would like to force my first page to be in a specified locale (say GERMAN). > How to do it? > > I tried to override Engine and set the its locale to Locale.GERMAN in its > constructor. But if the first incoming request has a different locale (say > ENGLISH), then my setting gets ignored (overridden later by Tapestry). What > is the right way to init engine locale? > > TIA > > Oleg > > > > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to force initial Locale
I would like to force my first page to be in a specified locale (say GERMAN). How to do it? I tried to override Engine and set the its locale to Locale.GERMAN in its constructor. But if the first incoming request has a different locale (say ENGLISH), then my setting gets ignored (overridden later by Tapestry). What is the right way to init engine locale? TIA Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Avoid template parsing
I have similar problem. Here is my script-block /* */ Tapestry complains: Tag )? BR, Norbi Mário Lopes wrote: > Is there any tag to avoid a certain block of code from being parsed on > a .html? > > I have some javascript on that file and it complains about things it > shouldn't. > > Regards. > > -- Mário > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Multiple skins with Tapestry
Wild thought: one could also misuse Locale and have "localized" templates like Home_design1, etc..., but all in the same folders. But I also like the idea with different folders more. Is it maybe possible? Mit freundlichen Grüßen / Best regards __ Oleg Bondarenko Software Engineer GFT Technologies AG Düsseldorfer Straße 13 D-65760 Eschborn T +49-6196-969-2157 F +49-6196-969-1001 [EMAIL PROTECTED] www.gft.com __ -Ursprüngliche Nachricht- Von: Paul Cantrell [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. Mai 2006 16:33 An: Tapestry users Betreff: Re: Multiple skins with Tapestry Yes, CSS for sure, and a border component that swaps out different CSS files based on some parameter. On May 22, 2006, at 9:16 AM, mike jones wrote: > css? > > On 5/22/06, Sergey G. Kashin <[EMAIL PROTECTED]> wrote: >> >> How to create multiple designs with tapestry for one application? >> >> may be good idea to use folders for skins >> design1/Home.html >> design2/Home.html >> design3/Home.html >> >> but for all that pages will need create view >> design1/Home.java >> design2/Home.java >> design3/Home.java >> >> that not very nice. >> >> Any ideas to resolve this problem? _ Piano music podcast: http://inthehands.com Other interesting stuff: http://innig.net - 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]
AW: Getting name of the current column in contrib:TableView
Using binding "column" e.g. for TableColumns or TableValues. hope it helps. Mit freundlichen Grüßen / Best regards __ Oleg Bondarenko Software Engineer GFT Technologies AG Düsseldorfer Straße 13 D-65760 Eschborn T +49-6196-969-2157 F +49-6196-969-1001 [EMAIL PROTECTED] www.gft.com __ -Ursprüngliche Nachricht- Von: Dan Adams [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. Mai 2006 15:17 An: Tapestry users Betreff: Getting name of the current column in contrib:TableView Can anyone tell me how to get the name of the currently rendering column from TableView? I'm digging around but can't seem to find it. -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - 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]