cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Jelmoni <...@otego.com>
Subject woody - fill selection list with bean
Date Thu, 16 Oct 2003 09:47:17 GMT
Hi,

I m trying to fill a selection list with a collection using woody and 
cocoon 2.1.3-dev  .

I got in select_bind_bind.xml

<wb:context xmlns:wb="http://apache.org/cocoon/woody/binding/1.0" path="/" >
 
 <wb:repeater id="aliases"
    parent-path="."
    row-path="aliases"
    unique-row-id="aliasId"
    unique-path="@aliasId">

    <wb:on-bind>
      <wb:value id="aliasId" path="aliasId"/>
      <wb:value id="aliasText" path="aliasText"/>
    </wb:on-bind>
  </wb:repeater>

</wb:context>

and in the model  i tried something like :

<?xml version="1.0" encoding="ISO-8859-1"?>
<wd:form
  xmlns:wd="http://apache.org/cocoon/woody/definition/1.0"
  xmlns:i18n="http://apache.org/cocoon/i18n/2.1">

  <wd:field id="aliasesWzd" required="false">
    <wd:label>Chose the error <b>level</b> to show</wd:label>
    <wd:datatype base="string"/>
    <wd:selection-list  dynamic="true">
           <wd:repeater id="aliases">
                <wd:item id="aliasId">
              <wd:label id="aliasText" />
            </wd:item>
        </wd:repeater>
     </wd:selection-list>
   </wd:field>
 
</wd:form>

that don't work (null pointer exception).

How should be done ?

Thanks

Kim


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


Mime
View raw message