found a way, following is a simplified one, this will display pages in
Chinese locale, but got a new problem, all the links generated in the site
does not have a locale as part of url, that will go back to default locale
if click:


        @Inject
    private ThreadLocale locale;

public PageRenderRequestParameters decodePageRenderRequest(Request request)
{ 
                locale.setLocale(Locale.CHINESE);
          return new PageRenderRequestParameters("item/list" 
                   new URLEventContext(contextValueEncoder, new
String[]{info.get("code")}), false); 
       } 
       return null;   
   }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/rewriting-incoming-url-with-locale-as-part-of-url-tp5048853p5048957.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to