cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Adobati <omar.adob...@gmail.com>
Subject Form Description, Form Template & Repeater
Date Wed, 16 Nov 2005 21:38:09 GMT
Hello Cocooners,

  here is a sample of the code I'm trying to write:

1. the form definition
  <fd:repeater id="TelNumbers">
      <fd:widgets>
        <fd:field id="Type">
          <fd:label>type</fd:label>
          <fd:datatype base="long"/>
        </fd:field>
        <fd:field id="Value">
          <fd:label>tel Number</fd:label>
          <fd:datatype base="string"/>
        </fd:field>
      </fd:widgets>
    </fd:repeater>

2. the form template
      <ft:repeater id="TelNumbers" initial-size="2">
      <tr>
        <td>
          <ft:repeater-widget-label widget-id="Type"/>
        </td>
        <td>
          <ft:widget id="Type"/>
        </td>
      </tr>
      <tr>
        <td>
          <ft:repeater-widget-label widget-id="Value"/>
        </td>
        <td>
          <ft:widget id="Value"/>
        </td>
      </tr>
      </ft:repeater>

and here is the error cocoon gives me back:

org.apache.cocoon.forms.FormsRuntimeException: Repeater 'TelNumbers'
has no child named 'Type'
fd:repeater - file:/C:/Programmi/Apache%20Software%20Foundation/Tomcat%205.5/webapps/cocoon/CFormTest/forms/employee.xml
- 97:38

where is the problem?

tanks again for your helps


--
Omar Adobati
omar.adobati@gmail.com

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


Mime
View raw message