Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4837

SmartLinkMultiLineLabel does not display email addresses or web URLs as hyperlinks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.8, 6.2.0
    • 1.5.9, 6.3.0
    • wicket-extensions
    • None

    Description

      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 (http://wicket.apache.org/start/quickstart.html):

      • Version 1.5.8: SmartLinkMultiLineLabel not working.
      • Version 6.2.0: SmartLinkMultiLineLabel not working either.

      Attachments

        1. Screenshot1.png
          41 kB
          Monica Nguon
        2. HomePage.java
          1 kB
          Monica Nguon
        3. HomePage.html
          1 kB
          Monica Nguon

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              mnguon@telemetris.com Monica Nguon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: