Wicket
  1. Wicket
  2. WICKET-4

Page.onBeginRequest() [and consequently .onAttach()] not called when form on page is submitted.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3.0-beta2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      os = OS X 10.4.8; java version = jre/jdk 1.5.0_06; servlet container = jetty-5.1.11RC0

      Description

      Page.onBeginRequest() [and consequently .onAttach()] not called when form on page is submitted. Form.onBeginRequest() is not called as well. However, Page.onEndRequest() and Form.onEndRequest() are called correctly.

      In more detail:
      I have a page, FrontPage, and a form LoginForm on it (The form has defaultFormProcessing = true)
      onBeginRequest(), onEndRequest() in FrontPage, LoginForm, are overriden as follows:

      protected void onBeginRequest()

      { log.debug("request begin"); ... super.onBeginRequest(); }

      protected void onEndRequest()

      { super.onEndRequest(); ... log.debug("request end"); }

      So I load FrontPage, type in data into the form (that corr. to LoginForm) and submit form.
      The log output is as follows

      //first load of page
      DEBUG <hotline.pages.FrontPage> request begin
      ...
      DEBUG <hotline.pages.FrontPage$LoginForm> request begin
      ...
      DEBUG <hotline.pages.FrontPage> request end
      DEBUG <hotline.pages.FrontPage$LoginForm> request end
      ...
      //form submitted
      DEBUG <hotline.pages.FrontPage> request end
      DEBUG <hotline.pages.FrontPage$LoginForm> request end

        Activity

        Paul Milovanov created issue -
        Igor Vaynberg made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Critical [ 2 ]
        Igor Vaynberg made changes -
        Fix Version/s 2.0 [ 12312113 ]
        Fix Version/s 1.3 [ 12312114 ]
        Eelco Hillenius made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Eelco Hillenius made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Eelco Hillenius made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Eelco Hillenius made changes -
        Assignee Johan Compagner [ jcompagner ]
        Johan Compagner made changes -
        Fix Version/s trunk [ 12312514 ]
        Fix Version/s 2.0 branch (discontinued) [ 12312113 ]
        Fix Version/s 1.3.0-beta2 [ 12312502 ]
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Closed [ 6 ]

          People

          • Assignee:
            Johan Compagner
            Reporter:
            Paul Milovanov
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development