cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@rennes.jouve.fr>
Subject Re: flowscript access to a widget in a repeater
Date Tue, 28 Oct 2003 14:28:51 GMT
Hi Nicolas !

The following code should work, to browse your

Repeater transform = (Repeater)form.getWidget().getWidget("transform");
for (var i=0 ; i<transform.getSize() ; i++) {
     Field searchField = (Field) transform.getWidget(i, "search");
... do something with your widget...
}

--
Olivier Billard

On 28/10/2003 14:42, Nicolas Maisonneuve wrote:

> hy,
> my model is :
> <wd:field id="index">
>     <wd:label>Index :</wd:label>
>     <wd:datatype base="string"/>
>     <wd:selection-list src="cocoon:/list?list=index" dynamic="true"/>
>     <wd:on-value-changed>
>         <javascript>
>         var value = event.source.value;
>          /* var searchwidget= something to access to my searchwidget in 
> the repeater  */
>          
> searchwidget.setSelectionList("cocoon:/list?list=search&amp;index=" + 
> value);
>        </javascript>
>     </wd:on-value-changed>
>  
>  </wd:field>
>  
>  <wd:repeater id="transform">
>  
>   <wd:field id="search" required="true">
>       <wd:label>Search field:</wd:label>
>       <wd:datatype base="string"/>
>       <wd:selection-list/>
>    </wd:field>
>  </wd:repeater>
>  
> how acess to my searchfield ?



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


Mime
View raw message