-
1. Re: how to handle onclick and ondblclick event with a a4j:queue ?
renegritsch Nov 24, 2010 2:15 AM (in response to renegritsch)Has no one an working example for me?
How do you handle onclick and ondblclick ?? -
2. Re: how to handle onclick and ondblclick event with a a4j:queue ?
ilya_shaikovsky Nov 24, 2010 6:25 AM (in response to renegritsch)<a4j:queue requestDelay="300"></a4j:queue><h:form><a4j:outputPanel layout="block" style="width:100px; height:100px; border:1px solid black;" id="panel"><a4j:support event="onclick" immediate="true"ajaxSingle="true" similarityGroupingId="panel"/><a4j:support event="ondblclick" similarityGroupingId="panel"immediate="true" ajaxSingle="true" /></a4j:outputPanel></h:form><a4j:queue requestDelay="300"></a4j:queue>
<h:form>
<a4j:outputPanel layout="block" style="width:100px; height:100px; border:1px solid black;" id="panel">
<a4j:support event="onclick" immediate="true"
ajaxSingle="true" similarityGroupingId="panel"/>
<a4j:support event="ondblclick" similarityGroupingId="panel"
immediate="true" ajaxSingle="true" />
</a4j:outputPanel>
</h:form>
pay attention:
- requests marked as "similar" with special attribute. So them will be combined if came to queue sequentially
- delay added in order the queue awaiting for similar requests for some time.
-
3. Re: how to handle onclick and ondblclick event with a a4j:queue ?
renegritsch Nov 24, 2010 8:49 AM (in response to ilya_shaikovsky)Sorry doesn´t work for me, sometimes 2x/10
onclick event
onDBLclick event
onclick event
onclick event
onclick event
onDBLclick event
onclick eventOkay fixed it by
{code:xml}<a4j:queue requestDelay="100" size="1" sizeExceededBehavior="dropNext"></a4j:queue>{code}