This content has been marked as final.
Show 3 replies
-
1. Re: a4j:poll getting data twice
lfryc May 9, 2011 6:48 AM (in response to ttsiebzehntt)Hi Martin,
you should rather use action for incrementing the counter, other attributes doesn't ensure that corresponding EL expressions won't be evaluated during request lifecycle.
However when you want to limit the incrementation one-per request, you can for example use following condition:
if (FacesContext.getCurrentInstance().getCurrentPhaseId() == PhaseId.RENDER_RESPONSE) { i++; }
-
2. a4j:poll getting data twice
ttsiebzehntt May 9, 2011 8:01 AM (in response to lfryc)Hi Lukáš,
thanks for the hints.
So I know how to workaround, but why is it necessary to get the data twice?
-
3. a4j:poll getting data twice
ilya_shaikovsky May 9, 2011 8:13 AM (in response to ttsiebzehntt)actually Martin I think that's a valid issue. data should be used to serialize some server side object in order it to be available for further processing at client side. And I really see no reasons of performing that data population twice. Need to be checked upon 3.3.x and reviewed in order to check the reasons of such behavior.