cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Friedman (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2011) [improvement and patch] CFormsSuggest widget does not implement the on value changed event available for most cocoon form widgets
Date Thu, 15 Feb 2007 21:32:05 GMT
[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
            Priority: Minor
             Fix For: 2.1.11-dev (Current SVN)


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.


Mime
View raw message