-
1. Re: KeepAlive comportment change between 2.0.0.ALPHA and 2.0.0.BETA
wesleyhales Jan 6, 2010 2:02 PM (in response to g-butcher)Can you give me some debugging information?
- Are they the exact same projects, only switching the bridge jars to a newer version?
- Do you see anything in the logs?
- Can you create a jira with an example project if you cannot find the problem?
Thanks!
-
2. Re: KeepAlive comportment change between 2.0.0.ALPHA and 2.0.0.BETA
g-butcher Jan 7, 2010 11:25 AM (in response to wesleyhales)Thanks for your answer !
- Yes, it's exactly the same project, I only change the bridge version
- I don't know what to look after in log, but there isn't any exception
- I don't create any JIRA because I'm not sure this is a bug ... I don't know which behaviour is the good one.
I attach a sample project to reproduce this.
I made a little table with the differents cases :
Expected page reload ajax request standard request redirect standard bean restored recreated recreated recreated excluded bean recreated recreated recreated recreated keepalive bean restored restored restored recreated keepalive and excluded bean recreated restored restored recreated bridge 2.0.0.ALPHA page reload ajax request standard request redirect standard bean restored recreated recreated recreated excluded bean recreated recreated recreated recreated keepalive bean restored restored restored recreated keepalive and excluded bean recreated restored recreated recreated bridge 2.0.0.BETA page reload ajax request standard request redirect standard bean restored recreated recreated recreated excluded bean recreated recreated recreated recreated keepalive bean restored restored restored recreated keepalive and excluded bean restored restored recreated recreated Are you agree with what is expected ?
To be honest I think I'm a little lost about what behaviour we must expected in a portal.
My use case is to make wizard and perhaps I need something else than keepalive and excluded feature... the fact is that when the user change portal page, I want my portlet to be refresh as if user never use it before ... how can I do that ?
I don't know if my explanation is clear enough, please feel free to ask me more questions !
Thanks !
-
testPortletKeepAlive.zip 170.4 KB
-
3. Re: KeepAlive comportment change between 2.0.0.ALPHA and 2.0.0.BETA
g-butcher Jan 28, 2010 10:05 AM (in response to g-butcher)Hi,
Nobody have an answer to my question ...What is the right behavour for keepAlive and excluded ?
How can I do to refresh a bean only when the user changed the portal page ?
Please let me know if you need more elements !
Thanks !
-
4. Re: KeepAlive comportment change between 2.0.0.ALPHA and 2.0.0.BETA
iga3k May 9, 2011 9:33 AM (in response to g-butcher)Did you get an answert to your problem? I am in the same situation. I need to reset the status of a bean after leaving the pace. I tryed to use this code to remove the keepAlive beans but it is not working. When I'm getting back to the initial page, it is still filled with the old data.
public static final void clearKeepAlive() { FacesContext fc = FacesContext.getCurrentInstance(); for (String key: new ArrayList<String>(fc.getViewRoot().getAttributes().keySet())) { if (key.startsWith(AjaxPhaseListener.VIEW_BEAN_PREFIX) || key.startsWith(AjaxPhaseListener.AJAX_BEAN_PREFIX)) { fc.getViewRoot().getAttributes().remove(key); } } }