if you make a resoure reference to a shared resource that is or can change.
Then you need to control the caching headers and last modified times. Else the browser will not know that it needs to refresh it.

See resource.setCacheable (boolean cacheable) and protected void configureResponse(final Response response)

johan


On 5/11/06, Timothy Bennett < [EMAIL PROTECTED]> wrote:
Wicketeers,

I'm on Wicket 1.2-rc3 and I'm having some trouble invalidating a loaded resource reference.  I've got a tabular list view of data that has an action panel as one of the fields in the list view.  This action panel contains a link to view the tabular data in the form of a graphical chart that will constructed dynamically using the JFreeChart API.

You can find my relevant code at http://papernapkin.org/pastebin/app/view/568.


Everything works like a champ the first time I click to view a row's data as a chart.  However, subsequent clicks on other rows in the data view always render the same chart created on the first link.  I discovered the invalidate() method on the ResourceReference, but I don't think I'm using it correctly, but my chart is not invalidated after rendering.

Advice?

Thanks in advance!
Timothy

Reply via email to