This content has been marked as final.
Show 3 replies
-
1. Re: <a4j:commandButton> requestDelay and HtmlUnit
nbelaevski Oct 29, 2009 11:22 AM (in response to ssilvert)Hi Stan,
"requestDelay" attribute defines time interval during which components are allowed to wait for the new events. Example:<a4j:commandLink requestDelay="1500" value="Link" />
Let current time be t:
t=0, link is clicked by the user, timer T1 started for 1500 (request delay, in ms) interval
t=1000, link is clicked by the user again, timer T1 is stopped and new timer T2 with the same interval is started
t=2500, link fires request by T2 timer expiration event
For the components in queues situation is slightly different because requests from another components force waiting ones to end wait and submit immediately - that's necessary to preserve events ordering. -
2. Re: <a4j:commandButton> requestDelay and HtmlUnit
ssilvert Oct 29, 2009 2:00 PM (in response to ssilvert)Thanks Nick.
So what is different in the way the request is submitted when there is requestDelay? I'm looking for the mechanism that makes the submit happen.
I'm suspecting that there might be a setting in HtmlUnit that I am missing.
Stan -
3. Re: <a4j:commandButton> requestDelay and HtmlUnit
nbelaevski Oct 29, 2009 5:25 PM (in response to ssilvert)Stan,
That's just usual setTimeout() JS call. Please take a look at startTimer() method: http://fisheye.jboss.org/browse/RichFaces/branches/community/3.3.X/framework/impl/src/main/javascript/ajaxjsf/queue.js?r=14239