Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor correction

...

The above will work in Tapestry 5.3, but MultiZoneUpdate is deprecated and replaced. For 5.3 and later, use AjaxResponseRenderer instead:

Code Block
controlstrue
titleMultiple Zone Update (5.23)
linenumberstrue
  @Inject
  private Block searchResults;

  @Inject
  private Block statusBlock;

  @Inject
  private AjaxResponseRenderer ajaxResponseRenderer;

  void onSuccessFromSearchForm()
  {
    searchHits = searchService.performSearch(query);

    message = String.format("Found %,d matching documents", searchHits.size());

    ajaxResponseRenderer.addRender("results", searchResults).addRender("status", statusBlock);
  }

...