just change the model and let the page refresh on its own. that's generally the wicket way.
if you don't setResponsePage(), the page will not be changed.
Nick Heudecker wrote:
Hi, My application has a Home page class that retrieves some data and presents it to the user. One of the operations that the user can perform is to click a link to flag an item as completed. The link handling logic is in the Home class. Once the user clicks the link, I need to update the data that's displayed to the user. I'm unsure how best to handle this. As I see it, I have two options: 1) User logs in -> Home -> User clicks link -> Handled by code in the Home page -> Home updates retrieved data -> Displayed to user 2) User logs in -> Home -> User clicks link -> Handled by code in another page -> Another page calls Home -> Home updates retrieved data -> Displayed to user Which is the best way to handle this with Wicket? I tried the first option and get errors about components already being added to the page. The second options yields a blank page when I call setResponsePage(new Home()). Any help would be appreciated. -Nick ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user