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

SmartLinkLabel doesn't recognize already tagged links

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5.2
    • Component/s: wicket-extensions
    • Labels:
    • Environment:
      wicket 1.5-RC5.1, tomcat 7, windows 7

      Description

      The SmartLinkLabel works as expected for the texts without <a>..</a> tag.
      for text like
      extensions @ http://www.wicketframework.org/wicket-extensions/index.html are cool!!
      SmartLinkLabel generates the html -
      extensions @ <a href="http://www.wicketframework.org/wicket-extensions/index.html">http://www.wicketframework.org/wicket-extensions/index.html</a> are cool!!

      but for the text like
      extensions @ <a href='http://www.wicketframework.org/wicket-extensions/index.html'>http://www.wicketframework.org/wicket-extensions/index.html</a> are cool!!
      SmartLinkLabel generates the html -
      extensions @ <a href='<a href="http://www.wicketframework.org/wicket-extensions/index.html">http://www.wicketframework.org/wicket-extensions/index.html</a>'><a href="http://www.wicketframework.org/wicket-extensions/index.html">http://www.wicketframework.org/wicket-extensions/index.html</a></a> are cool!!

      I think this is a bug & needs a fix.

        Attachments

        1. AutoLinkLabelExt.java
          5 kB
          Jasphior

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Tzvetanov Grigorov
                Reporter:
                jasphior Jasphior
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: