You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Monica Nguon (JIRA)" <ji...@apache.org> on 2012/10/25 12:15:12 UTC

[jira] [Commented] (WICKET-4837) SmartLinkMultiLineLabel does not display email addresses or web URLs as hyperlinks

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

Monica Nguon commented on WICKET-4837:
--------------------------------------

Steps to reproduce:

mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.5.8 -DgroupId=com.mycompany -DartifactId=myproject158 -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false

Modify the POM to uncomment the "wicket-extensions" dependency.

Modify HomePage.java and associated markup (see attached files).

mvn jetty:run

Go to http://localhost:8080/ to visualize the result (see attached screenshot).
                
> SmartLinkMultiLineLabel does not display email addresses or web URLs as hyperlinks
> ----------------------------------------------------------------------------------
>
>                 Key: WICKET-4837
>                 URL: https://issues.apache.org/jira/browse/WICKET-4837
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>            Reporter: Monica Nguon
>         Attachments: HomePage.html, HomePage.java, Screenshot1.png
>
>
> SmartLinkLabel seems to be working just fine:
> add(new SmartLinkLabel("smartLinkLabel1", "test@domain.com"));		// OK
> add(new SmartLinkLabel("smartLinkLabel2", "http://domain.com"));		// OK
> add(new SmartLinkLabel("smartLinkLabel3", "https://domain.com"));		// OK
> add(new SmartLinkLabel("smartLinkLabel4", "ftp://domain.com"));			// OK
> add(new SmartLinkLabel("smartLinkLabel5", "Email: test@domain.com"));	// OK
> SmartLinkMultiLineLabel does not seem to detect email addresses or URLs:
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel1", "test@domain.com"));			// NO HYPERLINK
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel2", "http://domain.com"));			// NO HYPERLINK
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel3", "https://domain.com"));			// NO HYPERLINK
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel4", "ftp://domain.com"));			// NO HYPERLINK
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel5", "test@domain.com\nhttp://domain.com"));		// NO HYPERLINK
> add(new SmartLinkMultiLineLabel("smartLinkMultiLineLabel6", "Email: test@domain.com"));		// NO HYPERLINK
> Tested using Wicket QuickStart.

--
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