1 Replies Last post: May 30, 2008 7:19 PM by Vladimir  
amanzag   2 posts since
May 30, 2008
Currently Being Moderated

May 30, 2008 3:19 PM

q:twoListSelection and a4j

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

Vladimir   8 posts since
Feb 8, 2008
Currently Being Moderated
1. May 30, 2008 7:19 PM in response to: amanzag
Re: q:twoListSelection and a4j

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

More Like This

  • Retrieving data ...