Re: [Wicket-user] Ajax component replacement with updated Model issue

2007-07-18 Thread Timo Rantalaiho
On Sun, 15 Jul 2007, Erik Dreyer wrote: > Everything is working great except the 'display' component is not reflecting > the saved changes. Before replacing the edit component > with the display component, I'm calling setModel() on the original display > component with the updated data. This has

Re: [Wicket-user] Ajax component replacement with updated Model issue

2007-07-15 Thread Erik Dreyer
Solved it. onModelChanged() is your friend. - 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. htt

[Wicket-user] Ajax component replacement with updated Model issue

2007-07-15 Thread Erik Dreyer
Hi, Here's a use case I'm having a bit of trouble with: 1) present user with a Panel that display Contact information as text ('display' component). 2) User chooses to edit info 3) Replace 'display' component (via Ajax) with an 'edit' component. 4) User saves changes (via Ajax form post). 5) Par