1 Reply Latest reply on Nov 10, 2006 5:55 PM by gavin.king

    Seam Examples and Ajax

    antispart

      I noticed that the booking example isnt actually using ajax to rerender only a portion of the view - the whole view is being rerendered.

      The HotelSearchingAction session bean has

      public String find()
      {
      page = 0;
      queryHotels();
      return "main";
      }

      I believe that the return should be "null" in order to avoid navigating to the new page, right?

      I've tried this in my own app and my a4j components work with the return set to the same as the page (so "main" instead of null), but the whole page gets rerendered not just the appropriate section. If i set the return to null then the page doesnt get rendered at all.

      Any ideas what could be wrong?