cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beatejung <>
Subject Re: Binding selection-list inside the repeater widgit
Date Thu, 10 Feb 2005 19:14:23 GMT
Am Mittwoch, 26. Januar 2005 19:23 schrieb Alex Romayev:
> I'm having trouble binding a selection-list inside the repeater widget.
>   When I replace it with just a simple text widget, everything binds
> just fine, however as soon as I change it to the selection-list, the
> binding stops working.
> Has anyone run into this, I'm using cocoon 2.1.5.
> Regards,
> -Alex
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

hi alex,

i tried selection list within a repeater and it seems to work fine :-)

this is a part of the model:

  <fd:repeater id="furniture">
		  <fd:field id="furnitureItems" required="true">
      			<fd:label>Bezeichnung auswaehlen:</fd:label>
      			<fd:datatype base="string"/>
    				<fd:length min="2">
      					<fd:failmessage>Eintrag auswaehlen!</fd:failmessage>
      			<fd:selection-list src="cocoon:/inventar-furniture"/> 

here part of  the binding:

   <fb:repeater id="furniture"

      <fb:value id="id" path="@id"> 
      <fb:value id="furnitureItems"  path="@type">
      <fb:value id="cnt"  path="."  >
                 <fd:convertor datatype="integer"/>
binding did not work  on read if the bound value from the data source is not 
exactly the same like you have used in the selection list.

i had trouble only because i wrote "beamer" in the data source and "Beamer" in 
my list :-(

hope this helps a bit :-)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message