[ 
https://issues.apache.org/jira/browse/WICKET-4330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183440#comment-13183440
 ] 

Chris Colman commented on WICKET-4330:
--------------------------------------

> You don't specify anywhere that 'foobar' is a replacement for 'wicket' 
> namespace. Or at least I don't see it. 

It's specified in the html tag of each markup file. That was all that was 
required to change the namespace in 1.4.x. In fact in 1.4.x we even had some 
markup specified with "wicket" namespace and others specified with "foobar" 
namespace and it worked perfectly - even markup inheritance worked with markups 
in the hierarchy having *different* namespaces.

Are you saying that in 1.5.x we need to specify a namespace change in the java 
code somewhere?

> General: Namespace should not be a constant

I had a hunch that some hard coded "wicket" namespace references in 1.5.x might 
be related or the cause of the issue.
                
> Non standard ("wicket") namespace causes incorrect relative URL in certain 
> cases
> --------------------------------------------------------------------------------
>
>                 Key: WICKET-4330
>                 URL: https://issues.apache.org/jira/browse/WICKET-4330
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.3
>         Environment: Win XP, 4GB RAM, Tomcat 6, Java 6
>            Reporter: Chris Colman
>              Labels: wicket
>         Attachments: nonStdNamespaceBug.zip
>
>
> The problem is related to non standard (i.e. "wicket") namespaces.
> In my quickstart if I change the namespace in all markup from "wicket"
> to "foobar" then the BPL which has only the last segment differing from the 
> current page ends up producing an incorrect link to another page in the same 
> path.
> i.e.
> Browser is at this page:
> http://127.0.0.1/content/other/o/1234/aspect/fred
> <p>
>       Here's a relative link to another page in the same 'path'
>       <div>
>               <a foobar:id="janeLink" href="../../../../../jane"
> style="outline: 0;">
>                       jane
>               </a>
>       </div>
> </p>
> <p>
>       A link to the current page
>       <a foobar:id="fredLink" href="fred">fred</a> </p>
> The above BPL href of ../../../../../jane is wrong.
> With 'wicket' set as the namespace the 'jane' BPL outputs 'jane' which is 
> correct.
> This same code worked with the non standard namespace under 1.4.x
> Attached quickstart demonstrates the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to