huh, if you have <a> in your markup, then i wouldn't be surprised if
things didn't work as expected. You should try to replace a panel with
panel, possible attached to <div>

-Matej

On 6/28/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
> On 6/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >         public void onClick() {
> > >             DeleteLink.this.replaceWith(new
> > > ConfirmDeletePanel(DeleteLink.this.getId(), "really delete?") {
> > >                 @Override
> > >                 protected void onCancel() {
> > >                     replaceWith(DeleteLink.this);
> > >                 }
> > >
> > >                 @Override
> > >                 protected void onConfirm() {
> > >                     Filter filter =
> > > (Filter)getParent().getParent().getModelObject();
> > >                     service.delete(filter);
> > >                     replaceWith(DeleteLink.this);
> > >                 }
> > >             });
> > >         }
> >
> > Code looks fine to me. And I'm using replaceWith quite a bit and it
> > works fine. Can you try to set a break point in onClick, see if it
> > arrives there and step into the replace code?
>
>
> The onClick() is definitely getting called (I set breakpoints this
> morning...) but the panel just isn't getting replaced.  Now, is there any
> problem with replacing a link (in this case) with a panel?  There's no
> impedence mismatch between the <a> and the <span> that would normally get
> used?
>
>
> -------------------------------------------------------------------------
> 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