I tried so hard but I cannot get a simple Richfaces a4j:attachQueue programmatically inserted in my page. I generate the RichFaces components from Java code, not xhtml.
I have some problems with the output of the data. Every request should be queued and fired after 2 seconds.If there are more than one request, only the
last request should be fired, the other request should be in the queued and destroyed
<a4j:queue requestDelay="2000" ignoreDupResponses="true"></a4j:queue>
I want that, if the User selects an item of the DropDownMenu 1 ( see method getSelectOneMenu1() ) and than select an item of the DropDownMenu 2
( see method getSelectOneMenu2() ), the first request should be queued and destroyed, RichFace should show only the data of the last request.
For example , the user select Quinie of the DropDownMenu 1 and then selects Pierrette of the DropDownMenu 2, only Pierrette should be showed ,
not Quinie and then after 2 seconds Pierrette. At the moment i receive two names from the same queue Quinie and after 2 seconds Pierrette.
That is not what i,ve expected, because i,ve implemented UIAttachQueue and uiAttachQueue.setRequestGroupingId("mygroupingId");
My big problem ,i don,t know how to attach programmatically a4j:attachQueue to a4j:ajax as child .I want to generate programmatically something
like this, with java not with xhml.