cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Wyles <ro...@trentris.com>
Subject Re: create FormBinding from w3cDocument or String
Date Tue, 03 Apr 2007 20:14:05 GMT
Hi,

There is a patch here that will do what you require...

https://issues.apache.org/jira/browse/COCOON-1471

Regards,

Robin.

On 3 Apr 2007, at 15:54, ZongoZongo wrote:

>
> Hi
>
> I use CForms. The binding is delivered from a javaclass. I can pass a
> w3cDocument or a String. I tried several thinks like:
>
> var myClass = new Packages.MyClass();
> form.createBinding(myClass.getBinding().getDocumentElement());
> //getBinding() delivers a w3cDocument)
> Doesnt work because createBinding expects a sourcepath.
>
> or
>
> var myClass = new Packages.MyClass();
> var binding = myClass.getBinding()
> form.createBinding("cocoon:/generate/from/string",  
> {"binding":binding});
> //getBinding() delivers a String
>
> matching pipeline:
> <map:match pattern="generate/from/string">
> 				<map:generate type="jx" src="module:flow-attr:binding" />
> 				<map:serialize type="xml"/>
> </map:match>
> The following error arises: The attribute: binding is empty
>
> So please, could somebody help me?
>
> THANX
>
> kind regards,
>
> Niclas
> -- 
> View this message in context: http://www.nabble.com/create- 
> FormBinding-from-w3cDocument-or-String-tf3513328.html#a9811543
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Mime
View raw message