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] Updated: (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:45:05 GMT

     [ https://issues.apache.org/jira/browse/COCOON-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Friedman updated COCOON-2011:
----------------------------------

    Attachment: CFormsSuggest_patch

This patch adds the onValueChanged function to the CFormsSuggest widget

It looks for the onchange attribute and name attribute for the widget and then calls cocoon.forms.submitForm
with the widget's domNode and name

		if(this.onchange == "cocoon.forms.submitForm(this)") {
			cocoon.forms.submitForm(this.domNode, this.name);
		}



> [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)
>
>         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.


Mime
View raw message