You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Antony Stubbs (JIRA)" <ji...@apache.org> on 2009/02/11 22:25:59 UTC

[jira] Updated: (WICKET-1865) BookmarkablePageLink cannot correctly pass PageParameters with Chinese characters.

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

Antony Stubbs updated WICKET-1865:
----------------------------------

    Attachment: wicket-1865.zip

A quick start which tries to re-produce the problem, and fails.

Please try out the quick start, and see if it works, or not for you. 

Can you either please clarify what you have that is different from the quick start. If you can still re-produce the problem, please post your quick start.

Also, you shouldn't need to use URLDecoder as Wicket does this for you. In our test we tried both however.

> BookmarkablePageLink cannot correctly pass PageParameters with Chinese characters.
> ----------------------------------------------------------------------------------
>
>                 Key: WICKET-1865
>                 URL: https://issues.apache.org/jira/browse/WICKET-1865
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.4
>         Environment: Wicket 1.3.4 , Server : CentOS 5.2 UTF8 encoded environment (LANG=zh_TW.UTF-8) , Resin 3.1.6 , JDK 1.6.0_03
> Client : Windows XP Pro Traditional Chinese version , Firefox 3.0.3 Chinese version
>            Reporter: smallufo
>         Attachments: wicket-1865.zip
>
>
> I have a form , after submitting that form , it will embed some paramaters and redirect to some page :
> public void onSubmit()
> {
>   PageParameters pps = new PageParameters();
>   pps.put("place", "台北市"); // "台北市" is Chinese characters : "Taipei"
>   setResponsePage(FirstPage.class , pps);
> }
> When directed to FirstPage.java , the URL correctly shows "/place/台北市"
> and I can use URLDecoder to get correct place = "台北市" :
> place = URLDecoder.decode(pps.getString("place") , "UTF-8");
> Everything seems works fine here...
> But things get complicated after adding a NavigationPanel to the FirstPage :
> public class LeftNavigationPanel extends Panel
> {
>   public LeftNavigationPanel(String id , final PageParameters pps)
>   {
>     add(new BookmarkablePageLink("secondPage" , SecondPage.class , pps));
>     ... 
>   }
> }
> I want the SecondPage appends whatever appended in the FirstPage , so I pass PageParameters to it.
> Here comes the problem :
> In the SecondPage , parameter "place" is not "台北市" any more , 
> it becomes :
> %25E5%258F%25B0%25E5%258C%2597%25E5%25B8%2582
> I feel it is a bug regarding to BookmarkablePageLink.
> Can you confirm / fix it ?

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