Does anybody know the solution of this? I have the same problem. I can't
catch the event by valueChanged method.


asif_zzz wrote:
> 
> Hi
> 
> I'm using cocoon 2.1.10.
> 
> In my page I've a MultiValueField widget which has rendering as checkboxes
> In that MultiValueField field I've added a fd:on-value-changed event.
> When page loads ,I'm setting some values to MultiValueField  ,for the
> checkbox component need to be  selected while rendering in the page and
> the event get fired on page load because im setting some values.
> 
> Once the page is loaded ,im trying to change the MultiValueField values to
> checked/unchecked,but the fd:on-value-changed event not get fired.
> 
> I dont know why its not getting fired.
> Anyone please help me to solve this problem as this is critically blocking
> my proceedings.
> 
> Code:
> 
> Defn:
> =========
> <fd:multivaluefield id="list1">
>       <fd:label><i18n:text>list_type</i18n:text></fd:label>
>       <fd:datatype base="string" />
>       <fd:selection-list type="java" nullable="false"
> class="com.sample.SampleDynaSelectionList" />
>       <fd:on-value-changed>
>               <fd:java class="com.sample.MultiValChangeListener" />
>       </fd:on-value-changed> 
> </fd:multivaluefield>
> 
> Tmpl:
> ====
> <ft:widget id="list1" >
>         <fi:styling list-type="checkbox" />
> </ft:widget>
> 
> Class
> ------
> 
> package com.sample;
> 
> import org.apache.cocoon.forms.event.ValueChangedEvent;
> import org.apache.cocoon.forms.event.ValueChangedListener;
> 
> public class MultiValChangeListener implements ValueChangedListener {
> 
> public void valueChanged(ValueChangedEvent event) {
>       System.out.println("-->valueChanged");
> }
> 
> }
> 
> 
> Thanks in Advance,
> Aashik
> 

-- 
View this message in context: 
http://www.nabble.com/MultiValueField-on-value-changed-event-not-firing-when-modifying-the-items-tp21971023p22848182.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to