cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.com>
Subject Error in documentation of Cocoon forms Union widget
Date Tue, 15 Sep 2009 21:50:42 GMT
http://cocoon.apache.org/2.2/blocks/forms/1.0/741_1_1.html  has a
mistake...  Inside the <fd:group>  the <fd:widgets> tags are missing in
this example. 

 

 

<fd:field id="testcase">

  <fd:datatype base="string"/>

  <fd:selection-list>

    <fd:item value="case1"><fd:label>Case 1</fd:label></fd:item>

    <fd:item value="case2"><fd:label>Case 2</fd:label></fd:item>

  </fd:selection-list>

</fd:field>

 

<fd:union id="testunion" case="testcase">

  <fd:widgets>

    <fd:group id="case1">

      <fd:field id="field1">

        <fd:datatype base="string"/>

      </fd:field>

      <fd:field id="field2">

        <fd:datatype base="string"/>

      </fd:field>

    </fd:group>

    <fd:group id="case2">

      <fd:field id="field1">

        <fd:datatype base="long"/>

      </fd:field>

      <fd:field id="field2">

        <fd:datatype base="long"/>

      </fd:field>

    </fd:group>

  </fd:widgets>

</fd:union>

 

Cheers,

Robby Pelssers


Mime
View raw message