You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Bille Jensen (JIRA)" <ji...@apache.org> on 2006/10/26 01:19:20 UTC

[jira] Resolved: (WICKET-16) missing base64/ URL encoding

     [ http://issues.apache.org/jira/browse/WICKET-16?page=all ]

Frank Bille Jensen resolved WICKET-16.
--------------------------------------

    Resolution: Fixed

> missing base64/ URL encoding
> ----------------------------
>
>                 Key: WICKET-16
>                 URL: http://issues.apache.org/jira/browse/WICKET-16
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.2, 2.0
>         Environment: any
>            Reporter: Korbinian Bachl
>         Assigned To: Frank Bille Jensen
>             Fix For: 1.2.3, 2.0
>
>
> yesterday i showed the concept of omponents to a friend and stumled into something i dont understand and think it might be a bug. 
>  
> I have a small panelcompoment that holds a searchform (textfield + submit) nothing special here, the code behind looks like: 
>  
>  @Override
>         public void onSubmit() 
>         {
>             String suchFeld = getSuchfeld();
>             if(suchFeld.length()>0)
>             {
>                 PageParameters params = new PageParameters();
>                 params.add("finde",suchFeld);
>                 setResponsePage(Suche.class,params);
>             }
>             else
>             {
>                 setResponsePage(getPage().getClass());
>             }  
>       }
>  
> the component is put into a "BasePage":
>  
>  public BasePage() {
>         ....    
>         add(bar);
>         add(new SuchPanel("SuchPanel"));
>         .....
> }
>  
> wich is then extended by the real page:
>  
> public class Foo extends BasePage{
>     
>     /** Creates a new instance of Zigarren */
>     public Foo() {
>         }
>  
> wich works all fine, however if the class name contains non ascii letters
> (e.g: ö ä ü etc.) it gives me a bug if nothing is entered into the search and the part
>  
> public class Zubehör extends BasePage{
>     
>     /** Creates a new instance of Zubehör */
>     public Zubehör() {
>     }
>  
> "setResponsePage(getPage().getClass());" comes to action, the trouble is that the page might have the URL:
> ?wicket:bookmarkablePage=:de.pages.Zubeh%C3%B6r
> but the form tries to go to : 
> wicket:bookmarkablePage=:de.pages.Zubeh%F6r
>  
> wich results in a CODE 404 in the App Server 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Re: [jira] Resolved: (WICKET-16) missing base64/ URL encoding

Posted by Juergen Donnerstag <ju...@gmail.com>.
Sorry if I missed it as part of your commits.

Juergen

On 10/26/06, Frank Bille <fr...@gmail.com> wrote:
> More simple than the one I have already done? :)
>
> Frank
>
>
> On 10/26/06, Juergen Donnerstag <ju...@gmail.com> wrote:
> >
> > Frank,
> >
> > could you create a simple junit test as well please. Thanks
> >
> > Juergen
> >
> > On 10/26/06, Frank Bille Jensen (JIRA) <ji...@apache.org> wrote:
> > >      [ http://issues.apache.org/jira/browse/WICKET-16?page=all ]
> > >
> > > Frank Bille Jensen resolved WICKET-16.
> > > --------------------------------------
> > >
> > >     Resolution: Fixed
> > >
> > > > missing base64/ URL encoding
> > > > ----------------------------
> > > >
> > > >                 Key: WICKET-16
> > > >                 URL: http://issues.apache.org/jira/browse/WICKET-16
> > > >             Project: Wicket
> > > >          Issue Type: Bug
> > > >          Components: wicket
> > > >    Affects Versions: 1.2.2, 2.0
> > > >         Environment: any
> > > >            Reporter: Korbinian Bachl
> > > >         Assigned To: Frank Bille Jensen
> > > >             Fix For: 1.2.3, 2.0
> > > >
> > > >
> > > > yesterday i showed the concept of omponents to a friend and stumled
> > into something i dont understand and think it might be a bug.
> > > >
> > > > I have a small panelcompoment that holds a searchform (textfield +
> > submit) nothing special here, the code behind looks like:
> > > >
> > > >  @Override
> > > >         public void onSubmit()
> > > >         {
> > > >             String suchFeld = getSuchfeld();
> > > >             if(suchFeld.length()>0)
> > > >             {
> > > >                 PageParameters params = new PageParameters();
> > > >                 params.add("finde",suchFeld);
> > > >                 setResponsePage(Suche.class,params);
> > > >             }
> > > >             else
> > > >             {
> > > >                 setResponsePage(getPage().getClass());
> > > >             }
> > > >       }
> > > >
> > > > the component is put into a "BasePage":
> > > >
> > > >  public BasePage() {
> > > >         ....
> > > >         add(bar);
> > > >         add(new SuchPanel("SuchPanel"));
> > > >         .....
> > > > }
> > > >
> > > > wich is then extended by the real page:
> > > >
> > > > public class Foo extends BasePage{
> > > >
> > > >     /** Creates a new instance of Zigarren */
> > > >     public Foo() {
> > > >         }
> > > >
> > > > wich works all fine, however if the class name contains non ascii
> > letters
> > > > (e.g: ö ä ü etc.) it gives me a bug if nothing is entered into the
> > search and the part
> > > >
> > > > public class Zubehör extends BasePage{
> > > >
> > > >     /** Creates a new instance of Zubehör */
> > > >     public Zubehör() {
> > > >     }
> > > >
> > > > "setResponsePage(getPage().getClass());" comes to action, the trouble
> > is that the page might have the URL:
> > > > ?wicket:bookmarkablePage=:de.pages.Zubeh%C3%B6r
> > > > but the form tries to go to :
> > > > wicket:bookmarkablePage=:de.pages.Zubeh%F6r
> > > >
> > > > wich results in a CODE 404 in the App Server
> > >
> > > --
> > > This message is automatically generated by JIRA.
> > > -
> > > If you think it was sent incorrectly contact one of the administrators:
> > http://issues.apache.org/jira/secure/Administrators.jspa
> > > -
> > > For more information on JIRA, see:
> > http://www.atlassian.com/software/jira
> > >
> > >
> > >
> >
>

Re: [jira] Resolved: (WICKET-16) missing base64/ URL encoding

Posted by Frank Bille <fr...@gmail.com>.
More simple than the one I have already done? :)

Frank


On 10/26/06, Juergen Donnerstag <ju...@gmail.com> wrote:
>
> Frank,
>
> could you create a simple junit test as well please. Thanks
>
> Juergen
>
> On 10/26/06, Frank Bille Jensen (JIRA) <ji...@apache.org> wrote:
> >      [ http://issues.apache.org/jira/browse/WICKET-16?page=all ]
> >
> > Frank Bille Jensen resolved WICKET-16.
> > --------------------------------------
> >
> >     Resolution: Fixed
> >
> > > missing base64/ URL encoding
> > > ----------------------------
> > >
> > >                 Key: WICKET-16
> > >                 URL: http://issues.apache.org/jira/browse/WICKET-16
> > >             Project: Wicket
> > >          Issue Type: Bug
> > >          Components: wicket
> > >    Affects Versions: 1.2.2, 2.0
> > >         Environment: any
> > >            Reporter: Korbinian Bachl
> > >         Assigned To: Frank Bille Jensen
> > >             Fix For: 1.2.3, 2.0
> > >
> > >
> > > yesterday i showed the concept of omponents to a friend and stumled
> into something i dont understand and think it might be a bug.
> > >
> > > I have a small panelcompoment that holds a searchform (textfield +
> submit) nothing special here, the code behind looks like:
> > >
> > >  @Override
> > >         public void onSubmit()
> > >         {
> > >             String suchFeld = getSuchfeld();
> > >             if(suchFeld.length()>0)
> > >             {
> > >                 PageParameters params = new PageParameters();
> > >                 params.add("finde",suchFeld);
> > >                 setResponsePage(Suche.class,params);
> > >             }
> > >             else
> > >             {
> > >                 setResponsePage(getPage().getClass());
> > >             }
> > >       }
> > >
> > > the component is put into a "BasePage":
> > >
> > >  public BasePage() {
> > >         ....
> > >         add(bar);
> > >         add(new SuchPanel("SuchPanel"));
> > >         .....
> > > }
> > >
> > > wich is then extended by the real page:
> > >
> > > public class Foo extends BasePage{
> > >
> > >     /** Creates a new instance of Zigarren */
> > >     public Foo() {
> > >         }
> > >
> > > wich works all fine, however if the class name contains non ascii
> letters
> > > (e.g: ö ä ü etc.) it gives me a bug if nothing is entered into the
> search and the part
> > >
> > > public class Zubehör extends BasePage{
> > >
> > >     /** Creates a new instance of Zubehör */
> > >     public Zubehör() {
> > >     }
> > >
> > > "setResponsePage(getPage().getClass());" comes to action, the trouble
> is that the page might have the URL:
> > > ?wicket:bookmarkablePage=:de.pages.Zubeh%C3%B6r
> > > but the form tries to go to :
> > > wicket:bookmarkablePage=:de.pages.Zubeh%F6r
> > >
> > > wich results in a CODE 404 in the App Server
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> > -
> > For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> >
> >
> >
>

Re: [jira] Resolved: (WICKET-16) missing base64/ URL encoding

Posted by Juergen Donnerstag <ju...@gmail.com>.
Frank,

could you create a simple junit test as well please. Thanks

Juergen

On 10/26/06, Frank Bille Jensen (JIRA) <ji...@apache.org> wrote:
>      [ http://issues.apache.org/jira/browse/WICKET-16?page=all ]
>
> Frank Bille Jensen resolved WICKET-16.
> --------------------------------------
>
>     Resolution: Fixed
>
> > missing base64/ URL encoding
> > ----------------------------
> >
> >                 Key: WICKET-16
> >                 URL: http://issues.apache.org/jira/browse/WICKET-16
> >             Project: Wicket
> >          Issue Type: Bug
> >          Components: wicket
> >    Affects Versions: 1.2.2, 2.0
> >         Environment: any
> >            Reporter: Korbinian Bachl
> >         Assigned To: Frank Bille Jensen
> >             Fix For: 1.2.3, 2.0
> >
> >
> > yesterday i showed the concept of omponents to a friend and stumled into something i dont understand and think it might be a bug.
> >
> > I have a small panelcompoment that holds a searchform (textfield + submit) nothing special here, the code behind looks like:
> >
> >  @Override
> >         public void onSubmit()
> >         {
> >             String suchFeld = getSuchfeld();
> >             if(suchFeld.length()>0)
> >             {
> >                 PageParameters params = new PageParameters();
> >                 params.add("finde",suchFeld);
> >                 setResponsePage(Suche.class,params);
> >             }
> >             else
> >             {
> >                 setResponsePage(getPage().getClass());
> >             }
> >       }
> >
> > the component is put into a "BasePage":
> >
> >  public BasePage() {
> >         ....
> >         add(bar);
> >         add(new SuchPanel("SuchPanel"));
> >         .....
> > }
> >
> > wich is then extended by the real page:
> >
> > public class Foo extends BasePage{
> >
> >     /** Creates a new instance of Zigarren */
> >     public Foo() {
> >         }
> >
> > wich works all fine, however if the class name contains non ascii letters
> > (e.g: ö ä ü etc.) it gives me a bug if nothing is entered into the search and the part
> >
> > public class Zubehör extends BasePage{
> >
> >     /** Creates a new instance of Zubehör */
> >     public Zubehör() {
> >     }
> >
> > "setResponsePage(getPage().getClass());" comes to action, the trouble is that the page might have the URL:
> > ?wicket:bookmarkablePage=:de.pages.Zubeh%C3%B6r
> > but the form tries to go to :
> > wicket:bookmarkablePage=:de.pages.Zubeh%F6r
> >
> > wich results in a CODE 404 in the App Server
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>