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

Sven Meier updated WICKET-4947:
-------------------------------

    Priority: Minor  (was: Major)

DefaultLinkParser needs urls to have a protocol.

You can register your own render strategy though:

        protected ILinkParser getLinkParser()
        {
                DefautLinkParser parser = new DefaultLinkParser();
                parser.addLinkRenderStrategy("www\\.[\\w\\.:\\-/?&=%]*", 
DefaultLinkParser.URL_RENDER_STRATEGY);
                return parser;
        }
                
> SmartLinkLabel and SmartLinkMultiLineLabel do not handle correctly web URLs 
> starting with www
> ---------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4947
>                 URL: https://issues.apache.org/jira/browse/WICKET-4947
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.5.9, 6.4.0
>            Reporter: Monica Nguon
>            Priority: Minor
>         Attachments: HomePage.html, HomePage.java, Screenshot27.png
>
>
> Steps to reproduce:
> 1) mvn archetype:generate -DarchetypeGroupId=org.apache.wicket 
> -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.5.9 
> -DgroupId=com.mycompany -DartifactId=myproject159 
> -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false
> 2) Uncomment wicket-extensions dependency in pom.xml
> 3) Use attached markup and java files.
> 4) Result: www.domain.com is not displayed as a link, whether in a 
> SmartLinkLabel or a SmartLinkMultiLineLabel.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to