Hello, Lukasz!

I have the similar problem. I looked at Tapestry sources and find out, that the
default behaviour you mention, is hardcoded.
To solve this problem I made my own implementation of
tapestry.request.RequestLocaleManager service-point. In this class I changed
method extractLocaleForCurrentRequest().
Then I added this implementation to my hivemodule.xml:

  <implementation service-id="tapestry.request.RequestLocaleManager">
    <invoke-factory model="pooled">
      <construct class="my.package.MyRequestLocaleManagerImpl">
        <set-service property="request" 
service-id="tapestry.globals.WebRequest"/>
        <set-object property="cookieSource" 
value="infrastructure:cookieSource"/>
        <set-service property="threadLocale" 
service-id="hivemind.ThreadLocale"/>
        <set-object property="acceptedLocales" 
value="app-property:org.apache.tapestry.accepted-locales"/>
      </construct>
    </invoke-factory>
  </implementation>

And now everithing works fine.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to