Actually I would like display the result of a CFORM. So  I use the normal
way: the JX.
But how do you code the JX to display the data of a repeater.
This instruction in the flowscript work: 

print(model.fiels[0].name )

but when I put the model in the JX;
 
cocoon.sendPage("config-sucess-pipeline.jx", {model: model} );

with this JX.
> > test: <jx:out value="${model.fields[0].name}">
> > <jx:forEach var="field" items="${model.fields}">
> >      <jx:out value="${field.name}" />
> > </jx:forEach>
> >

It doesn't work and I don't know why 


> -----Message d'origine-----
> De�: news [mailto:[EMAIL PROTECTED] De la part de Peter Kr�pfl
> Envoy�: vendredi 13 mai 2005 23:44
> ��: [email protected]
> Objet�: Re: Display a CForm Repeater in JXTemplate
> 
> >
> > hy,
> >
> > i have a repeater :
> >
> >  <fd:repeater id="fields" >
> >       <fd:widgets>
> >            <fd:field id="name" >
> >           <fd:datatype base="string"/>
> >     </fd:widgets>
> >   </fd:repeater>
> >
> > and i would like display the result with a JX.
> >
> > the flowscript is:
> >
> >  form.showForm( ..)
> >  model=form.getModel();
> >  cocoon.sendPage("config-sucess-pipeline.jx", {model: model} );
> >
> > the jx file :
> > <jx:forEach var="field" items="${model.fields}">
> >      <jx:out value="${field.name}" />
> > </jx:forEach>
> >
> 
> 
> Hi,
> 
> do you really need the jx?
> if not you could simply do something like that:
> you "fill" your fields in flow first and then show them.
> 
> ---code---
> 
> var model = form.getModel();
> 
> 
> 
> for (var i=0; i < number_of_fields; i++) {
> 
>  model.fields[i].name = "show_the_name";
> }
> 
> 
> form.showForm("repeater-display-pipeline");
> 
> ---end code----
> 
> btw, there is </fd:field> missing in your form definition
> 
> 
> hth
> Peter Kr�pfl
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to