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

Wicket.DOM.toggleClass is called with additional "#" inside AutoLabelResolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.13.0, 6.14.0
    • 7.0.0-M1, 6.15.0
    • wicket
    • None

    Description

      With WICKET-5411 (commit 484415796aab76fc4f635b375cbf2b0cd604457f) JavaScript calls in AutoLabelResolver.updateFrom() where changed to use Wicket.DOM.toggleClass().

      In one instance the leading "#" has been removed. The other two Wicket.DOM.toggleClass() calls still start with '#%s' which leads to double hashmarks and JS errors like the following in the browser:

      Wicket.Ajax: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: Error: Syntax error, unrecognized expression: ##myComponentId7e-w-lbl, text

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            ppetermair Patrick Petermair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: