Try a reuse items strategy to see if that works? Martijn
On 6/29/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > A thought occurred to me. I'm doing this panel replacement inside a > DataTable. So when the DT rerenders could it be overwriting the change I > just made? Because this panel replacement wouldn't really change the state > of the DT so when it rerenders itself it would render it's entire tree as it > iterates across all the rows and overwrite what I just changed. That sounds > like the probably culprit. Thoughts? > > > On 6/29/07, Evan Chooly < [EMAIL PROTECTED]> wrote: > > It is not. I'm not entirely sure what's broken here. I'm assuming that > tests exist in wicket for this and that it works there so the problem has > *got* to be on my end. I'm just not seeing it. I'll turn logging back on > and dig through each line. There's just so much info there... <sigh/> > > > > > > > > On 6/29/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > it is not by accident an ajax request right? > > > > > > > > > > > > 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 > > > > > > > > > > > > > ------------------------------------------------------------------------- > 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 > > -- Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org ------------------------------------------------------------------------- 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