> However, at any time the user can re-set the options and re-submit, > causing a completely different DataTable based on a new DataProvider.
First of all, ask yourself whether it is a completely different datatable, or whether the it's just a different model. > What tools does Wicket provide to allow me to replace one DataTable with > a new one? Or, to be more general, how do I code a page to replace one > component with a new one in response to user input? (I see plenty of > examples of adding a component to a page, but only in the constructor -- > and no examples of removing/replacing a component.) If it *is* a completely different datatable and you want to replace it with something completely different, use panels. Put your different options in different panels, and use 'replace' to replace one component with the other. Deleting is not allowed as that would result in an inconsistence between the component hierarchy and the markup. However, you can always replace with an empty panel. Eelco ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
