Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does Wicket handle stale data and the back button?

button Data stale Wicket
0
Posted

How does Wicket handle stale data and the back button?

0

Because Wicket has a first class component object model where the state for every page and nested component is available in the user’s session, it can trace through all that state when model information changes looking for pages containing components with models that have changed in ways that invalidate earlier renderings of those components and pages. This provides automatic handling for the back button, which has to do with stale markup, and can generally be divorced from the typical problems of stale data in a multi-user environment, which should be handled with the usual (optimistic) locking techniques in the persistence layer. A good example of stale markup is this: If a table on a page is rendered when there are 20 rows in the table’s model, a subsequent deletion of a row will invalidate the rendering of the table that is still cached in the user’s browser. When the user accesses the 20th row in the cached page by using their back button, the link will not be backed correctly. Wh

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123