[ https://issues.apache.org/jira/browse/COCOON-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Gallardo closed COCOON-2011. ------------------------------------ Resolution: Fixed Fix Version/s: 2.2-dev (Current SVN) Thanks for the patch. Feel free to reopen the issue if needed. > [improvement and patch] CFormsSuggest widget does not implement the on value > changed event available for most cocoon form widgets > --------------------------------------------------------------------------------------------------------------------------------- > > Key: COCOON-2011 > URL: https://issues.apache.org/jira/browse/COCOON-2011 > Project: Cocoon > Issue Type: Improvement > Components: Blocks: Ajax, Blocks: Forms > Affects Versions: 2.1.10 > Reporter: Paul Friedman > Assigned To: Antonio Gallardo > Priority: Minor > Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN) > > Attachments: CFormsSuggest_patch > > > CFormsSuggest widget does not handle the on value changed event. > in definition: > <fd:field id="xxx"> > <fd:label>xxx</fd:label> > <fd:datatype base="long"/> > <fd:suggestion-list type="javascript"> > return xxx(filter); > </fd:suggestion-list> > <fd:on-value-changed> > <fd:javascript> > xxx_onValueChanged(event.source.getForm()); > </fd:javascript> > </fd:on-value-changed> > </fd:field> > in template: > <ft:widget id="xxx" type="suggest"/> > the patch for CFormsSuggest.js adds the onValueChanged function > onValueChanged: function(/*String*/ value){ > if(this.onchange == "cocoon.forms.submitForm(this)") { > cocoon.forms.submitForm(this.domNode, this.name); > } > }, -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.