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

DatePicker renders errorenous JavaScript in AjaxRequest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC1
    • Fix Version/s: 1.5-RC2
    • Component/s: wicket-datetime
    • Labels:
      None

      Description

      For demonstration just start Wicket's ModalWindow example showing header contribution (org.apache.wicket.examples.ajax.builtin.modal.ModalPanel1).

      Ajax debug:
      ERROR: Wicket.Head.Contributor.processScript: TypeError: YAHOO.wicket is undefined: eval ->
      var e = Wicket.$('id8Dp'); if (e != null && typeof(e.parentNode) != 'undefined' && typeof(e.parentNode.parentNode != 'undefined')) e.parentNode.parentNode.removeChild(e.parentNode);YAHOO.wicket.id8DpJs.destroy(); delete YAHOO.wicket.id8DpJs;

      This issue is probably caused by changes in revision 991033 (WICKET-2850). It seems there are curly braces missing in the JavaScript code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ivaynberg Igor Vaynberg
                Reporter:
                svenmeier Sven Meier
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: