I solved the problem...  In case anyone else has a similar issue in
the future, the target.addComponent needs to be set in MyPage, not in
MyModalPage.  Something like this needs to be done:

        newService.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
        {
            public void onClose(AjaxRequestTarget target)
            {
                target.addComponent(container);
            }
        });

Note that I'm targeting a container around MyDataView. This code was
in the ModalWindow example, I just hadn't got it right.  It works now.

Thanks for the help!
Tauren


On 6/26/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> Timo,
>
> Good idea, but that doesn't work either.  The Ajax Debug window in
> MyPage shows nothing being sent to do.  Note this is in Wicket 1.2.6.
>
> INFO:
> INFO: Initiating Ajax GET request on
> /db/app?wicket:interface=:6:newService::IBehaviorListener&wicket:behaviorId=1&random=0.9353265386317773
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (69 characters)
> INFO:
> <?xml version="1.0" encoding="UTF-8"?><ajax-response></ajax-response>
> INFO: Response parsed. Now invoking steps...
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
>
> If there is nothing in the ajax response to do, then the problem
> shouldn't have to do with the dataview/dataprovider, should it?
>
> Any other ideas?
>
> Tauren
>
>
>
> On 6/26/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> > On Tue, 26 Jun 2007, Tauren Mills wrote:
> > > 2.  Use AJAX to refresh just MyDataView
> >
> > Have you tried adding a placeholder container around your
> > DataView and refreshing that with ajax instead?  I'm not
> > sure but I think that Repeaters used to need that if you
> > wanted to update them via AJAX.
> >
> > Have you checked that the DataProvider of your DataView gets
> > called (and returns the new item)?
> >
> > - Timo
> >
> > --
> > Timo Rantalaiho
> > Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to