Re: [Wicket-user] Invalidating a ResourceReference

2006-05-16 Thread Timothy Bennett
On 5/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
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.
makes sense See resource.setCacheable
(boolean cacheable) and protected void configureResponse(final Response response)I set cachable to false to no avail. configureResponse is final, so I overrode setHeaders(), but that didn't work either. I guess I'm going to need a little sample code
timothy


Re: [Wicket-user] Invalidating a ResourceReference

2006-05-16 Thread Timothy Bennett
On 5/12/06, Timothy Bennett [EMAIL PROTECTED] wrote:
I set cachable to false to no avail. configureResponse is final, so I overrode setHeaders(), but that didn't work either. I guess I'm going to need a little sample code
Nevermind. I just got it working. I threw away the ResourceReference, and just built a Resource instead. 


[Wicket-user] Invalidating a ResourceReference

2006-05-11 Thread Timothy Bennett
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


Re: [Wicket-user] Invalidating a ResourceReference

2006-05-11 Thread Johan Compagner
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)johanOn 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