-
1. Re: Proper use of keepAlive
sergeysmirnov Mar 26, 2007 1:04 PM (in response to mglowacki)The bean saved with keepAlive is stored in the state. So, if you return back with back button and then click and button, the state from this page is restored and the value of the bean should be restored as well.
-
2. Re: Proper use of keepAlive
balteo Apr 4, 2007 12:15 AM (in response to mglowacki)What is the difference between a "kept alive" bean and a session-scoped bean?
Julien. -
3. Re: Proper use of keepAlive
mglowacki Apr 4, 2007 1:12 AM (in response to mglowacki)keepAlive behaves like session bean, but exists only when you are at the page where this tag is defined. Session bean exists during all the session, so you can get data from it on many pages.
-
4. Re: Proper use of keepAlive
ilya_shaikovsky Apr 4, 2007 6:17 AM (in response to mglowacki)Also you may tell to keepAlive to store your beans only for Ajax requests.
-
5. Re: Proper use of keepAlive
simoncigoj Jun 16, 2008 3:15 PM (in response to mglowacki)I was wandering if the extensive use of keepAlive for ajax requests only could result in vast memory use on server and mybe memory space related problems...like out of memory etc... ?
And I would also like more about how keep alive works, how it stores data between requests? -
6. Re: Proper use of keepAlive
dryan63 Jan 21, 2009 6:41 PM (in response to mglowacki)Is there away to get the current instance of a bean that has been marked with a4j:keepalive? I need to refresh a property on the marked bean from another bean.
-
7. Re: Proper use of keepAlive
ilya_shaikovsky Jan 22, 2009 8:37 AM (in response to mglowacki)no difference between standard getting an instance of the bean and bean marked with keep alive.
it done with next code in our Song converter at richaces demoValueExpression beanExpression = expressionFactory .createValueExpression(facesContext.getELContext(), "#{library}", Library.class); Library library = (Library)beanExpression.getValue(facesContext.getELContext()); for (Song song : library.getSongsList()) { if (song.getId() == id){ return song; } }
-
8. Re: Proper use of keepAlive
shantanu.u Apr 27, 2009 7:31 AM (in response to mglowacki)Sounds like keepAlive is the quivalent of t:saveState provided by tomahawk but synchronizes the state of the bean with ajax requests. Is this true ?