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

adding (and querying) feedback messages at construction time fails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.5, 1.3.0-beta1
    • 1.3.0-beta1
    • wicket
    • None

    Description

      See http://www.nabble.com/error%28...%29-No-page-found-for-component-tf3497125.html

      Currently, adding (and querying) feedback messages fails whenever it is done on components that are not yet added to a page (or were removed from them due to component replacement).

      There are two ways to fix this. The first fix is attached as a patch, and basically uses a thread local to temporarily store the messages and distribute them to the relevant page instances just in time or when rendering starts. The advantage of this method is that it is completely back wards compatible.

      The other way to fix this is to store all messages, whether component specific or not, in the session, and pull them from there. We need to be careful about how/ when to clean these error messages up though. We can use this issue to think about it a little bit more.

      Attachments

        1. WICKET-442.patch
          13 kB
          Eelco Hillenius
        2. WICKET-442-2.patch
          44 kB
          Eelco Hillenius
        3. WICKET-442-3.patch
          45 kB
          Eelco Hillenius

        Activity

          People

            ehillenius Eelco Hillenius
            ehillenius Eelco Hillenius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: