hi,
in tapestry 5.3, i enabled the 'jp' and it works, but in a service if i do a 
locale.setLocale(Locale.JAPANESE) in a PageLinkTransformer, it does not work
in the page, still shows English, but if i did Locale.CHINESE, it works. any
idea why? simplified code as follow:

public class SampleTransformer implements PageRenderLinkTransformer {

    @Inject
    private ContextValueEncoder contextValueEncoder;

    @Inject
    private Response response;

    @Inject
    private ThreadLocale locale;

    // for outgoing link
    public Link transformPageRenderLink(Link link,
PageRenderRequestParameters pageRenderRequestParameters) {


    }

    // for incoming links
    public PageRenderRequestParameters decodePageRenderRequest(Request
request) {

          //      locale.setLocale(Locale.CHINESE); // this works

                locale.setLocale(Locale.JAPANESE); // this does not work

            return new PageRenderRequestParameters("sample/list",
                    new URLEventContext(contextValueEncoder, new
String[]{inf.get("code"), pageNo}), false);
        }
        return null;
    }

   
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/setting-japanese-locale-in-a-service-tp5633103p5633103.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to