You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by br...@bitstream.net on 2006/05/22 21:06:42 UTC
Problem with VIEW_CACHE/TokenCache
I've got an issue (previously discussed on this list) with my VIEW_CACHE
expunging a necessary object when I have a lot of activity on a dialog.
Then when it returns the parent page gets refreshed causing the return
listener to be lost. I can make the problem harder to encounter by upping
the cache size but I'd like to fix it.
It was suggested that I try "touching" the value in the cache periodically
to keep it at the front so it will never fall off the back. Which does
seem like a good idea. However I haven't determined how to get the token
for the object I want to keep. Are there any suggestions?
Thanks,
Brady
PS: Thanks to Adam for all the help so far.
Re: Problem with VIEW_CACHE/TokenCache
Posted by Adam Winer <aw...@gmail.com>.
On 5/22/06, bradyh@bitstream.net <br...@bitstream.net> wrote:
> I've got an issue (previously discussed on this list) with my VIEW_CACHE
> expunging a necessary object when I have a lot of activity on a dialog.
> Then when it returns the parent page gets refreshed causing the return
> listener to be lost. I can make the problem harder to encounter by upping
> the cache size but I'd like to fix it.
As in, giving a patch for the code? Please, please? :)
> It was suggested that I try "touching" the value in the cache periodically
> to keep it at the front so it will never fall off the back. Which does
> seem like a good idea. However I haven't determined how to get the token
> for the object I want to keep. Are there any suggestions?
Basically, the code that creates a new page flow scope for a dialog
currently pushes in true/false for the window, and the clientId of
the originating component. I'd push the original state token (see
the ResponseStateManager code) into that process scope map.
-- Adam
> Thanks,
> Brady
>
> PS: Thanks to Adam for all the help so far.
>
>