cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timur Izhbulatov <...@yxo.ru>
Subject Re: iterate cforms widgets in JX (fwd)
Date Mon, 23 Aug 2004 12:34:17 GMT

Timur 

 ----------Forwarded message ----------
References: <cc008e720408230517797a7f79@mail.gmail.com>
In-Reply-To: <cc008e720408230517797a7f79@mail.gmail.com>
From: Timur Izhbulatov <tim@yxo.ru>
To: Superbiji <superbiji@gmail.com>
Subject: Re: iterate cforms widgets in JX
Date: Mon, 23 Aug 2004 16:29:35 +0400
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit 

Superbiji writes: 

> Hi,  
> 
> Is is possible to iterate cforms widgets in  JX?  
> 
> flow.js:
> f=loadform
> showform
> var b=f.getmodel
> sendpage("somepage.jx", b)  
> 
> somepage.jx:
> for-each $bizdata

I have faced the same problem. 

Try to copy contents of you widget to an Array: 

f=loadform
showform
var b=f.getmodel 

//
var arr = new Array(b.length); 

for(i=0; i < arr.length; i++) {
 arr[i] = b[i];
}
// 

sendpage("somepage.jx", {"biz-data":arr} ) 

Timur 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message