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

Peter Ertl commented on WICKET-1428:
------------------------------------

picking the right placeholder for '..' seems not as easy :-)

taken from the RFC for URL's:
http://www.faqs.org/rfcs/rfc1738.html

> Thus, only alphanumerics, the special characters "$-_.+!*'(),", and
> reserved characters used for their reserved purposes may be used
> unencoded within a URL.

so these options have been suggested so far:
 
  "wicket:up", "...", "+", "-", "(up)", "_", "^"

it's all a matter of personal taste and whatever we choose, some people will 
not like it.

so I would definitely make this a customizable setting

I uploaded another patch that includes

  org.apache.wicket.settings.IResourceSettings#getParentFolderPlaceholder()

and

  
org.apache.wicket.settings.IResourceSettings#setParentFolderPlaceholder(CharSequence)

to modify that value.

the default for now is 'wicket:up'



> AutoLinkResolver and Parent-Relative (../) Links
> ------------------------------------------------
>
>                 Key: WICKET-1428
>                 URL: https://issues.apache.org/jira/browse/WICKET-1428
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: James Carman
>             Fix For: 1.5-M1
>
>         Attachments: wicket-1428-use-wicket-up-with-custom-settings.patch, 
> wicket-1428-use-wicket-up.patch, WICKET-1428.patch, 
> wicket-link-outside-of-package.zip
>
>
> Suppose I have a package structure like this:
> com.mycompany.myproject
> --- module1
> ------- page
> --------- Page1.html
> --- module2
> ------- page
> --------- Page2.html
> If I want to autolink from Page1.html to Page2.html, it would look like:
> <wicket:link>
>  <a href="../../module2/page/Page2.html">Click Here!</a>
> </wicket:link>
> This is not working, however.  The AutoLinkResolver spits out a warning 
> message:
> "WARN  - AutoLinkResolver           - Did not find corresponding java class: 
> .....module2.page.Page2"

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

Reply via email to