Hello,
I'm trying to add a q:twoListSelection to my form so that when the list changes, other components of the form get re-rendered.
I have this piece of code
<q:twoListSelection
value="#{reportingManagement.currentClients}"
id="selectClient"
allowItemsOrdering="false"
leftListboxHeader="#{messages.availableDocTypes}"
rightListboxHeader="#{messages.addedToReport}"
styleClass="qList"
>
<a4j:support immediate="false" reRender="selectDocType,selectUser,selectGroup" event="onadd" bypassUpdates="false" ajaxSingle="true"></a4j:support>
<f:selectItems value="#{reportingManagement.clients}" ></f:selectItems>
</q:twoListSelection>
When I add elements to the right list it seems to catch the event and try to call a4j, but I get this error in firefox's javascript console:
event is not defined
(no name)()varReportCriteria... (line 446)
q__tls_OnAdd(function())twoListSelection.... (line 640)
q__tls_moveRight(table#layoutForm:selectClient.q_tls)twoListSelection.... (line 411)
onclick()twoListSelection.... (line 50)
[Break on this error] q__initTwoListSelection('layoutForm:selectClient',function() {A4J.AJAX.Submit('_...
Does the q:twoListSelection component support a4j? Or am I doing something wrong?
I'm using quipukit 1.4.2
Thanks
Alberto
Hello Alberto,
Thank you for reporting the issue. WeÂve fixed it and the fix will be available in QuipuKit 1.5, which is planned to the mid-June..
Feel free to contact us If you have any further questions.
Regards,
Vladimir