- 
        1. Re: KeepAliveilya_shaikovsky Nov 25, 2010 8:32 AM (in response to ravi.kuchika)FacesContext.getCurrentInstance().getExternalContext().getRequestMap().remove("profile");FacesContext.getCurrentInstance().getExternalContext().getRequestMap().remove("profile"); removes the bean from request.
- 
        2. Re: KeepAliveravi.kuchika Nov 25, 2010 9:56 AM (in response to ilya_shaikovsky)but i have more beans(appro...50)..u want me to store all the ids in a list and remove one by one?? Is there any way to solve this with out looping? Thanks Ravi Kuchika 
- 
        3. Re: KeepAliveilya_shaikovsky Nov 25, 2010 10:24 AM (in response to ravi.kuchika)could call clear() on session map.. but will lost all the data there. 
- 
        4. Re: KeepAliveravi.kuchika Nov 25, 2010 9:23 PM (in response to ilya_shaikovsky)earlier am using this keepalive as a annotation in managedbean..So I can easily track the keepalive beans by using bean.getClass().isAnnotationPresent(KeepAlive.class) and can be removed from the requestMap..Now as am using in xhtmls am not getting how to find a way to get all these beans removed from the requestMap. Thanks Ravu Kuchika 
- 
        5. Re: KeepAliveilya_shaikovsky Nov 26, 2010 3:22 AM (in response to ravi.kuchika)you could get all the view attributes FacesContext.getCurrentInstance().getViewRoot().getAttributes() then check the keys there and all which starts with org.ajax4jsf.ajaxviewbean or org.ajax4jsf.viewbean prefixes - names of the keep aliv'ed beans. 
- 
        6. Re: KeepAliveravi.kuchika Nov 26, 2010 4:56 AM (in response to ilya_shaikovsky)it worked Thanks alot..llya Thanks Ravi Kuchika 
- 
        7. Re: KeepAliveravi.kuchika Nov 26, 2010 5:13 AM (in response to ravi.kuchika)I have a doubt...y the beans are storing in two places FacesContext.getCurrentInstance().getViewRoot().getAttributes() and also in the requestMap. Thanks Ravi Kuchika 
- 
        
 
     
    