non ho capito come funziona, qualcuno saprebbe spiegarmelo? allego il codice di CForms che interessa il repeater:
DEFINITION
BINDINGcodice:<fd:repeater id="results" initial-size="0" required="false"> <fd:widgets> <fd:output id="resultAbi"> <fd:label>ABI</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultCab"> <fd:label>CAB</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultNomeBanca"> <fd:label>Nome Banca</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultProvincia"> <fd:label>Pr.</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultComune"> <fd:label>Comune</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultIndirizzo"> <fd:label>Indirizzo</fd:label> <fd:datatype base="string"/> </fd:output> <fd:output id="resultStato"> <fd:label>Stato</fd:label> <fd:datatype base="char"/> </fd:output> <fd:output id="resultDataChiusura"> <fd:label>Data Chiusura</fd:label> <fd:datatype base="date"/> </fd:output> </fd:widgets> </fd:repeater>
TEMPLATEcodice:<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" path="/"> <fb:insert-bean classname="com.XXXX.yyyyyy.businessobject.Sportello" addmethod="addSportello"/> <fb:context path="objects[1]"> <fb:value id="abi" path="codAbi"/> <fb:value id="cab" path="codCab"/> <fb:value id="nome" path="nome"/> <fb:value id="localita" path="localita"/> <fb:value id="indirizzo" path="indirizzo"/> <fb:value id="comune" path="comune"/> <fb:value id="cap" path="cap"/> <fb:value id="provincia" path="provincia"/> <fb:value id="descrizione" path="descrizione"/> <fb:value id="stato" path="stato"/> <fb:value id="chiusura" path="dataChiusura"/> </fb:context> <fb:repeater id="results" parent-path="." row-path="objects"> <fb:on-bind> <fb:value id="resultAbi" path="codAbi"/> <fb:value id="resultCab" path="codCab"/> <fb:value id="resultNomeBanca" path="nome"/> <fb:value id="resultProvincia" path="provincia"/> <fb:value id="resultComune" path="comune"/> <fb:value id="resultIndirizzo" path="indirizzo"/> <fb:value id="resultStato" path="stato"/> <fb:value id="resultDataChiusura" path="dataChiusura"/> </fb:on-bind> </fb:repeater> </fb:context>
codice:<ft:repeater-widget id="results"> <result> <ft:widget id="resultAbi"/> <ft:widget id="resultCab"/> <ft:widget id="resultNomeBanca"/> <ft:widget id="resultProvincia"/> <ft:widget id="resultComune"/> <ft:widget id="resultIndirizzo"/> <ft:widget id="resultStato"/> <ft:widget id="resultDataChiusura"/> </result> </ft:repeater-widget>![]()

Rispondi quotando