Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Johan Compagner
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?) {

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
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

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Martijn Dashorst
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

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
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

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
That's a good idea i'll remember for the future. Instead I had the better idea of using a modal window for the delete confirmation. Purty. On 6/29/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Try a reuse items strategy to see if that works? Martijn On 6/29/07, Evan Chooly [EMAIL

[Wicket-user] replaceWith() not working

2007-06-28 Thread Evan Chooly
I'm on the latest snapshot and am having a problem using replaceWith(). When I have wicket logging turned on I can see all sorts of activity, but my page doesn't get updated. Below is the code I'm using. I ripped this code off from eelco's blog at

Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Eelco Hillenius
public void onClick() { DeleteLink.this.replaceWith(new ConfirmDeletePanel(DeleteLink.this.getId(), really delete?) { @Override protected void onCancel() { replaceWith(DeleteLink.this); }

Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Evan Chooly
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() {

Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Matej Knopp
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:

Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Evan Chooly
I started off with a panel but i moved it down one to the link itself thinking there might be some oddities with the panel being part of a column blah blah blah. I'll rework it and try again. On 6/28/07, Matej Knopp [EMAIL PROTECTED] wrote: huh, if you have a in your markup, then i wouldn't

Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Evan Chooly
On 6/28/07, Evan Chooly [EMAIL PROTECTED] wrote: I started off with a panel but i moved it down one to the link itself thinking there might be some oddities with the panel being part of a column blah blah blah. I'll rework it and try again. So bumping it back up to the whole panel didn't