Wicket
  1. Wicket
  2. WICKET-2800

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

    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

        Activity

        daniel teske created issue -
        daniel teske made changes -
        Field Original Value New Value
        Summary misinterpretation of commented JS-Code in an AbstractTab misinterpretation of commented JS-Code in an AbstractTab (with AjaxTabbedPanel)
        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-Bebug 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 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
        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
        Igor Vaynberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Igor Vaynberg [ ivaynberg ]
        Resolution Cannot Reproduce [ 5 ]

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            daniel teske
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development