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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.13.0, 6.14.0
    • Fix Version/s: 7.0.0-M1, 6.15.0
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: