Yes. I pass the original page and the model is accessed by a getter.
When the modal window closes and the onClose() callback is called, the
page and the model have been replaced by clones.
On 5/28/2011 2:03 PM, andrea del bene wrote:
Store data and sharing them across pages/components should be Wicket
model's purpose. In your code you create a RadioListFilterDialog as
modal window content. Do you pass it the original model of RadioListPage?
Wicket creates a new version of the page after a popup Modal Window
closes. This means any changes made to the original page from the
popup are lost once the popup is closed. I suppose I could store the
data for the change in the session and change the new page version
after the popup closes but that is inelegant. Is there a way to
prevent the extra version from being created (and why is it being
created anyway?) or is there some more elegant approach I could try?
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]