[ 
https://issues.apache.org/jira/browse/TAPESTRY-2392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Tumanov updated TAPESTRY-2392:
-------------------------------------

    Description: 
The org.apache.tapestry.locale cookie is used in Tapestry to remember last 
language choice made by the user.

But the problem is, the cookie expires in 7 days, and after it is removed from 
browser it never gets set again
(until the application is restarted).

Test case:

<html jwcid="$content$">
<body jwcid="@Shell" title="Hello">

<p>
  The current engine locale is: <span jwcid="@Insert" value="ognl:locale" />
</p>        
<p>
  Cookie received: <span jwcid="@Insert" 
value="ognl:getCookieSource().readCookieValue('org.apache.tapestry.locale')" />
</p>        

<p>
  <a href="#" jwcid="@DirectLink" listener="listener:doClick">Set locale to 
'et'</a>
</p>

</body>
</html>

  was:
The org.apache.tapestry.locale cookie is used in Tapestry to remember last 
language choice made by the user.

But the problem is, the cookie expires in 7 days, and after it is removed from 
browser it never gets set again
(until the application is restarted).




> Locale cookie not set after its expiration
> ------------------------------------------
>
>                 Key: TAPESTRY-2392
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2392
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.5
>            Reporter: Albert Tumanov
>            Priority: Minor
>
> The org.apache.tapestry.locale cookie is used in Tapestry to remember last 
> language choice made by the user.
> But the problem is, the cookie expires in 7 days, and after it is removed 
> from browser it never gets set again
> (until the application is restarted).
> Test case:
> <html jwcid="$content$">
> <body jwcid="@Shell" title="Hello">
> <p>
>   The current engine locale is: <span jwcid="@Insert" value="ognl:locale" />
> </p>        
> <p>
>   Cookie received: <span jwcid="@Insert" 
> value="ognl:getCookieSource().readCookieValue('org.apache.tapestry.locale')" 
> />
> </p>        
> <p>
>   <a href="#" jwcid="@DirectLink" listener="listener:doClick">Set locale to 
> 'et'</a>
> </p>
> </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to