You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robby Pelssers <ro...@ciber.com> on 2009/09/15 23:50:42 UTC

Error in documentation of Cocoon forms Union widget

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


Re: Error in documentation of Cocoon forms Union widget

Posted by David Legg <da...@searchevent.co.uk>.
Hi Robby,

Thanks for spotting that. It seems you are not the only one that has 
mentioned it... it was commented on back in December 2005! I have 
updated the daisy version of this document 
(http://cocoon.zones.apache.org/daisy/cdocs/g1/g2/g7/forms/widgets/741.html) 
but it will have to be published before it makes it to the live site. I 
never have had the courage to do that!

Regards,
David Legg


Robby Pelssers wrote:
>
> 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
>

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