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

Ajax refresh and feedback panel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.28.0, 7.9.0, 8.0.0-M8
    • 8.0.0
    • wicket

    Description

      For normal rendering we have:

      	/**
      	 * We need to postpone calling beforeRender() on components that implement {@link IFeedback}, to
      	 * be sure that all other component's beforeRender() has been already called, so that IFeedbacks
      	 * can collect all feedback messages. This is the key under list of postponed {@link IFeedback}
      	 * is stored to request cycle metadata. The List is then iterated over in
      	 * {@link #prepareForRender()} after calling {@link #beforeRender()}, to initialize postponed
      	 * components.
      	 */
      	private static final MetaDataKey<List<Component>> FEEDBACK_LIST = new MetaDataKey<List<Component>>()
      	{
      		private static final long serialVersionUID = 1L;
      	};
      

      Should there be similar functionality built in for Ajax update? It seems to be a typical problem that the feedback of an ajax update occurs too late.

      Attachments

        1. WICTKET-6503-feedbacks-prepare-last.zip
          36 kB
          Sven Meier
        2. Wicket8_Quickstart-IListener.zip
          171 kB
          Martin Terra
        3. Wicket8_Quickstart-nested.zip
          166 kB
          Martin Terra
        4. Wicket8_Quickstart.zip
          92 kB
          Martin Terra
        5. AjaxRequestTarget.diff.txt
          3 kB
          Martin Terra

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              mmakundi Martin Terra
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified