cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Yeadon <>
Subject Re: Help required with selection list
Date Mon, 27 Sep 2004 22:42:29 GMT

Below is the definition of a field I use to do the same thing and it 
works fine. Assuming you've implemented the listener correctly, the 
other thing to check is to ensure you add the submit-on-change styling 
into your form template. I have included this below also, I suspect this 
is the bit you're missing.

Form Definition file extract:
<fd:field id="DCElement" required="true">
    <fd:label>Dublin Core Element</fd:label>
    <fd:datatype base="string"/>
    <fd:selection-list dynamic="true"/>
          <java class=""/>

Form Template extract:
<ft:widget id="DCElement">
    <fi:styling submit-on-change="true"/>


Jennifer Yip wrote:

> Guys please help!
> I have a fd:field widget with a selection-list and an on-value-change 
> set up pointing to a java class implementing 
> org.apache.cocoon.forms.event.ValueChangedListener
> HOW CAN I GET THIS CLASS method valueChanged called when selection 
> change?
> Would I be better of adding a JavaScript action to cause a form 
> submit? Please guide me
> JENNY (on the -cocoon- block)
> Thanks
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger today! 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message