On 03/16/2011 01:48 PM, sunmoor007 wrote:
Hi Rich

Thanks. I understood the implementation of listener but i was looking at a
way to integrate it so that all URL's in app gets modified. I understand
that in app module we can plugin any service. Assume i have a impl class
implementing the listener interface, how will i integrate it into existing
application so that all URL's have a dynamic parameter, say system time in
milliseconds appended to the url.
Referencing these lines from ClientPersistentFieldStorageImpl.java:

135     public void updateLink(Link link)
136     {
137     refreshClientData();
138     
139     if (clientData != null) link.addParameter(PARAMETER_NAME, clientData);
140     }


You can see that the Link object has an addParameter function. You should be able to use this to add the system time to the URL as a parameter, from my understanding. Since you understand the implementation of listener, then that should be pretty simple.

It seems the last challenge you are facing is how you should setup your implementation of the listener in the Module so it will be used on link creation. That is a little bit beyond my scope of knowledge here, so I'll defer that answer to someone else.

The reason am trying to add the system time is to ensure that everytime a
dynamic value is appended to url and hence proxy server wont cache and show
me stale data which is currently happening.

Thanks
Sundar

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p3790608.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to