cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Salvetti <m...@notremanou.net>
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">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, <br>
<br>
i recently posted a mail about pb with the binding framework doing
nothing.<br>
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; 
      &lt;/fb:value&gt;
    &lt;/fb:identity&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 !!

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


Regards,
-Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@cocoon.apache.org">users-unsubscribe@cocoon.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@cocoon.apache.org">users-help@cocoon.apache.org</a>
    </pre>
  </blockquote>
  <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:widgets&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:validation&gt;
    				&lt;fd:length min="2"&gt;
      					&lt;fd:failmessage&gt;Eintrag auswaehlen!&lt;/fd:failmessage&gt;
    				&lt;/fd:length&gt;
  			&lt;/fd:validation&gt;
      			&lt;fd:selection-list src="cocoon:/inventar-furniture"/&gt; 
   		&lt;/fd:field&gt;				
        ........
      		&lt;/fd:widgets&gt;
    	&lt;/fd:repeater&gt;

here part of  the binding:

   &lt;fb:repeater id="furniture"
               parent-path="inventar/furniture"
               row-path="item"&gt;

   &lt;fb:identity&gt;
      &lt;fb:value id="id" path="@id"&gt; 
      &lt;/fb:value&gt;
    &lt;/fb:identity&gt;
	       
     &lt;fb:on-bind&gt;
  
      &lt;fb:value id="furnitureItems"  path="@type"&gt;
      &lt;/fb:value&gt;  
           
      &lt;fb:value id="cnt"  path="."  &gt;
                 &lt;fd:convertor datatype="integer"/&gt;
	&lt;/fb:value&gt;
		
    &lt;/fb:on-bind&gt;
    
  &lt;/fb:repeater&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 :-)
beate
  </pre>
</blockquote>
</body>
</html>


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


Mime
View raw message