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

Problem in generation of the html code of the page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0 branch (discontinued)
    • 2.0 branch (discontinued)
    • wicket
    • None

    Description

      When we create a page, the page generates this html code:

      <script type="text/javascript" ><!-/><![CDATA[/><!-*/
      if (window.name=='')

      { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }

      /-->]]>/</script>

      Now, we add a button in the page (a very simple page):

      public class Index extends QuickStartPage
      {
      public Index(final PageParameters parameters)
      {

      Form form = new Form(this, "form");
      new Button(form, "button"){

      @Override
      public void onSubmit()

      { // TODO Auto-generated method stub String p = ""; }

      };
      }
      }

      And when we click the button, in the generation of the page we have the code duplicated:

      <script type="text/javascript" ><!-/><![CDATA[/><!-*/
      if (window.name=='')

      { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }

      /-->]]>/</script>

      <script type="text/javascript" ><!-/><![CDATA[/><!-*/
      if (window.name=='')

      { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }

      /-->]]>/</script>

      And if we continue clicking the button, the page continues duplicating the code...

      Attachments

        Activity

          People

            knopp Matej Knopp
            buealb Alberto Bueno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: