cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Form Description, Form Template & Repeater
Date Fri, 18 Nov 2005 09:52:16 GMT
On Thu, 2005-11-17 at 19:11 +0100, Omar Adobati wrote:
> Thanks for the answers, I changed the code in:
> 
> <ft:repeater id="TelNumbers" initial-size="2">
>      <tr>
>        <td>
>          <ft:widget-label widget-id="Type"/>
>        </td>
>        <td>
>          <ft:widget id="Type"/>
>        </td>
>      </tr>
>      <tr>
>        <td>
>          <ft:widget-label widget-id="Value"/>
>        </td>
>        <td>
>          <ft:widget id="Value"/>
>        </td>
>      </tr>
>      </ft:repeater>
> 
> but I have an error that sounds quit like the one I have before:
> Repeater 'TelNumbers' has no child named 'TelNumbers'
> 
> why?

Hmm... I get the impression that you're just randomly trying out tags
without understanding what they do.

Have a look at the example here (below the header "From Cocoon 2.1.8"):
http://cocoon.apache.org/2.1/userdocs/widgets/widget_repeater.html

Thus:
 1. your code is missing the ft:repeater-rows tag.
 2. if you want to insert the widget labels inside each row, then you
need to do the usual <ft:widget-label id="..."/>

> 
> 
> On 11/17/05, Myriam Delperier <myriam.delperier@ajlsm.com> wrote:
> > | | hello,
> > | | I think that in the template :
> > | | <ft:repeater-widget-label widget-id="Type"/> should be replaced by
> > | | <ft:widget-label widget-id="Type"/>,
> > | | same thing for <ft:repeater-widget-label widget-id="Value"/>.
> >
> > in fact the good value is : <ft:widget-label id="Type"/>
> >

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message