On Thu, Feb 17, 2011 at 10:36 PM, fachhoch <[email protected]> wrote:

>
> thanks for the reply , yes it is the model which takes time to load, I did
> not start the coding yet  to show you the code  I am   looking for
> suggestions.,
> write now my idea is to create this model object when user logs in and put
> in his session, this panel gets the data from session  and  it will have
> AjaxSelfUpdatingTimerBehavior  to  update  itself.
> but the difficult part   where  I need advice is how to tell my session to
> reload this model at frequent intervals?
>  if this is not a good idea please advice me  with  better way to do .
>

I don't think you should be doing this in your UI layer at all.  It'd be
better IMHO as a function of a service that handles caching, uses a least
recently used map, expires caches after X seconds / minutes, optionally
refreshes that cache after X seconds / minutes, etc.  Your UI component
would just get it from this caching / data management service, which should
always be a quick operation after the first retrieval.

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*

Reply via email to