I'm not seeing a (target) panel updated as a result of an
AjaxSubmitButton.  The onSubmit() method delagates to an IVisitor that
uses getPage().visitChildren() to find the panel in question.  Does
that sound like the same bug?


  public EditItemPanel(String id, Model whsItemModel) {
    super(id, whsItemModel);
    wItem = (WarehouseItem) this.getModelObject();
    form = new EditItemForm("editItemForm");
    form.add(new Label("productName", wItem.getSku().getProductName()));
    guestNameField = new TextField("guestName", new Model(""));
    form.add(guestNameField);
    form.add(new AjaxSubmitButton("ajaxSubmit", form) {
      private static final long serialVersionUID = 8677262489811798153L;
      public void onSubmit(final AjaxRequestTarget target, Form f) {
        getPage().visitChildren(CartPanel.class, new Component.IVisitor() {
          public Object component(Component comp) {
            target.addComponent(comp);
            return Component.IVisitor.STOP_TRAVERSAL;
          }
        });
        ModalWindow.close(target);
      }
    });
    this.add(form);
  }

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to