cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Salvetti <>
Subject Re: Binding selection-list inside the repeater widgit
Date Mon, 14 Feb 2005 09:23:41 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Hi, <br>
i recently posted a mail about pb with the binding framework doing
By looking at your code, i found out that i needed the fb:identity  to
be in the the binding :<br>
<pre wrap="">   &lt;fb:identity&gt;
      &lt;fb:value id="id" path="@id"&gt; 

if it's missing, the binding doesn't produce any errors, but just stop working <span
 class="moz-smiley-s7"><span> :-\ </span></span>

Thanks a lot for the solution !!

beatejung a écrit :
<blockquote cite="" type="cite">
  <pre wrap="">Am Mittwoch, 26. Januar 2005 19:23 schrieb Alex Romayev:
  <blockquote type="cite">
    <pre wrap="">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.


To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href=""></a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href=""></a>
  <pre wrap=""><!---->
hi alex,

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

this is a part of the model:

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

here part of  the binding:

   &lt;fb:repeater id="furniture"

      &lt;fb:value id="id" path="@id"&gt; 
      &lt;fb:value id="furnitureItems"  path="@type"&gt;
      &lt;fb:value id="cnt"  path="."  &gt;
                 &lt;fd:convertor datatype="integer"/&gt;
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