cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <>
Subject [Fwd: onChange event handler for the widgets defined inside the union]
Date Sat, 10 Sep 2005 14:56:46 GMT
(This message was sent to my personal address; forwarding to the users 
list.  Discussion should take place there.)

-------- Original Message --------
Subject: 	onChange event handler for the widgets defined inside the union
Date: 	Sat, 10 Sep 2005 16:52:35 +0530
From: 	<>
To: 	<>
CC: 	<>


Can any one help me out..

How to define onChange event-handler for the widgets defined inside the

What's wrong in the below code?

//flow script code


wid.lookupWidget('description_u/visible/description').onChange =
function (oldV, newV) {
     print("oldV::" + oldV);
     print("newV::" + newV);

//definition file

<fd:union id="description_u" case="description_c">
     <fd:struct id="visible">
         <fd:field id="description">
           <fd:datatype base="string" />
             <!-- TODO remove the below code   -->
             <fd:item value="1">
             <fd:item value="2">
     <fd:struct id="disabled">
     <fd:struct id="hidden">

//template file

<ft:union id="description_u">
   <ft:case id="visible">
     <ft:struct id="visible">
       <!-- insert regular header row HTML stuff here -->
       <ft:widget id="description">
         <fi:styling submit-on-change="true" />
   <ft:case id="disabled">
     <ft:struct id="disabled">
       <!-- insert regular header row HTML stuff here -->
       <p>Please choose a Phone value first.</p>
   <ft:case id="hidden">
      <p>hidden value</p>


Confidentiality Notice

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or immediately
and destroy all copies of this message and any attachments.

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

View raw message