Hi,

I'm trying to force a page to re-render everytime the user clicks the refresh 
button. Wicket sees the page as a stateful page, but I'm not interested at all 
in keeping this state.

What I would like to do is to get the newest data from the database on refresh 
and display it. I tried to use LoadableDetachableModels for this, but ran into 
trouble pretty soon. The main reason is that the data also determines 
visibility and styling of individual elements in the page which makes the code 
very complicated with lots of LoadableDetachableModels and Behaviors (The page 
is not exactly small). Also, the page size increases, and I want to avoid that.

So, I ended up in overwriting the renderPage() method in my page, throwing away 
all content and drawing it again. But I don't like this solution. Can I somehow 
force wicket to throw away the complete page and create a new one?

Regards,
Anna


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to