java - "Change" event not trigged in composite component -
for application, created composite : <collect:intervenor>
.
the goal of one, render list of clients , allow user select 1 of them. problem is, when choose client in list, want raise event, calls method display client name in other field, not included in component. i'm not able it.
this xhtml part code when call component :
<collect:intervenor componentid="thirdpartyidentity" datamodel="#{controller.cardmetamodel.thirdpartyidentity}" value="#{controller.card.thirdpartyidentity}" characteristicid="#{catalogconstants.getcharacteristicintcar()}"> <p:ajax event="intervenorchange" update="@([id$=customarea1])" listener="#{controller.updatecustomarea1()}" /> </collect:intervenor>
in same xhtml page, field want update once client selected :
<!-- text card--> <sal:blocklevel1sales metamodel="#{controller.cardmetamodel}" chrctid="#{controller.getcharacteristiczonpsl()}" toggleable="true"> <!-- customization area 1 --> <sal:textsalesformitem id="customarea1" datamodel="#{controller.cardmetamodel.customizationarea1}" value="#{controller.card.customizationarea1}" /> </sal:blocklevel1sales>
and finally, interface of composite :
<composite:interface componenttype="collect.component.intervenorcomponent"> <composite:attribute name="componentid" type="java.lang.string" required="true" /> <composite:attribute name="datamodel" /> <composite:attribute name="value" /> <composite:attribute name="catalogdataid" /> <composite:attribute name="characteristicid" /> <composite:clientbehavior name="intervenorchange" event="change" targets="intervenordroplist"/> </composite:interface> <composite:implementation> <sbf:container id="#{cc.attrs.componentid}"> <sbf:container styleclass="sbf-formitem" layout="flow"> <sal:droplistsalesformitem id="intervenordroplist" datamodel="#{cc.attrs.datamodel}" value="#{cc.attrs.value}"> <sbf:selectitems var="suggestedintervenor" value="#{cc.intervenorlist}" itemvalue="#{suggestedintervenor.thrdptyid}" itemlabel="#{suggestedintervenor.getthrdptylbl()}" /> </sal:droplistsalesformitem> <sbf:commandlink value="rechercher" action="#{cc.setsearchpartyvisible(true)}" update="@([id$=searchpartydialog])" process="@this" ajax="true" /> <salc:searchpartydialog dialogid="searchpartydialog" searchpartyaction="#{generictransactioncontroller.searchpartylist}" visible="#{cc.searchpartyvisible}" searchpartyselected="#{cc.searchpartyselected}"> <p:ajax event="thirdpartyselected" update="@([id$=#{cc.attrs.componentid}])" listener="#{cc.addintervenor()}" /> </salc:searchpartydialog> </sbf:container> </sbf:container> </composite:implementation>
do see solution update field "customarea1" once client selected?
in advance, thank you
aurélien
Comments
Post a Comment