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

SmartLinkLabel doesn't recognize already tagged links

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5-RC5.1
    • 1.5.2
    • wicket-extensions
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: