you can keep track of the current edit panel via a property of the listview.

so your editlink onclick looks like this:

if (currentEditPanel!=null) {
   addStateChange(new Change() { final Panel old=currentEditPanel; undo() { curentEditPanel=old; } });
    currentEditPanel.getParent().replace(...view panel);
}

currentEditPanel=new editpanel.....

...same code... replace viewpanel with the currentEditPanel


hope this helps....

-Igor






On 4/27/06, Mats Norén <[EMAIL PROTECTED]> wrote:
Ok, and when you mean keep track you mean adding a current_edited
property to my panel and then in the onClick-handler do the switch. Is
the component id available somehow in the onClick?


-------------------------------------------------------
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?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to