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

misinterpretation of commented JS-Code in an AbstractTab (with AjaxTabbedPanel)

    XMLWordPrintableJSON

Details

    Description

      Wicket isn't able to render the selected Tab in an AjaxTabbedPanel if there is a comment JS-code that is embedded in the <wicket:head>. When I press the F5-key after clicking on the tab, the selected panel gets rendered.

      The Ajax-Debug tells "object required"

      Here is the JS-code of my AbstractTab-Markup:

      <wicket:head>
      <script language="javascript">
      var myVar = null;
      function myFunction(id1, id2)

      { //do something }

      /* function myCommentedFunction(id1,id2){
      if(id1 && id2)

      { //do something }

      }*/
      </script>
      </wicket:head>

      Would I use a normal TabbedPanel or delete the commented JS-code the tab is working fine =/

      I don't hope that this is a Major-Bug of your <wicket:head>-interpretation!

      thanks a lot,
      danielt

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            danielt daniel teske
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: