Re: [cforms] Simple XML binding

2004-06-09 Thread Reinhard Poetz
Daniel Fagerstrom wrote: I have added loadXML(uri) and saveXML(uri) to the api, now the example look like: // get the documentURI parameter from the sitemap which contains the // location of the file to be edited var documentURI = cocoon.parameters["documentURI"]; // populate the

Re: [cforms] Simple XML binding

2004-06-09 Thread Daniel Fagerstrom
Bruno Dumon wrote: On Wed, 2004-06-09 at 10:36, Daniel Fagerstrom wrote: In such case, that is not what I want to achieve, I think that the XML format should be locale independent (at least as default), I think so too how do one implement that? simply use Locale.US? Seem like a better idea, I

Re: [cforms] Simple XML binding

2004-06-09 Thread Daniel Fagerstrom
Reinhard Poetz wrote: Daniel Fagerstrom wrote: I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter between a form object and a simple XML format that can be used without needing to wriite a binding definition. Thank you very much! I think this is a very valuable addition to Cocoon

Re: [cforms] Simple XML binding

2004-06-09 Thread Marc Portier
Daniel Fagerstrom wrote: I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter between a form object and a simple XML format that can be used without needing to wriite a binding definition. I also checked in a sample, (a variant of the binding sample), that show how to use the ad

Re: [cforms] Simple XML binding

2004-06-09 Thread Andreas Hochsteger
Daniel Fagerstrom wrote: Andreas Hochsteger wrote: Hi Daniel, this sounds really interesting! Would this functionality allow you to bind XML content to a textarea input element too? What I mean is, that this way you could populate certain parts of an XML document directly with the XHTML-Output of

Re: [cforms] Simple XML binding

2004-06-09 Thread Bruno Dumon
On Wed, 2004-06-09 at 10:36, Daniel Fagerstrom wrote: > Bruno Dumon wrote: > > > On Tue, 2004-06-08 at 18:11, Daniel Fagerstrom wrote: > > > >>I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter > >>between a form object and a simple XML format that can be used without > >>needin

Re: [cforms] Simple XML binding

2004-06-09 Thread Daniel Fagerstrom
Bruno Dumon wrote: On Tue, 2004-06-08 at 18:11, Daniel Fagerstrom wrote: I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter between a form object and a simple XML format that can be used without needing to wriite a binding definition. WDYT? Very useful addition. I've been thinki

Re: [cforms] Simple XML binding

2004-06-09 Thread Daniel Fagerstrom
Andreas Hochsteger wrote: Hi Daniel, this sounds really interesting! Would this functionality allow you to bind XML content to a textarea input element too? What I mean is, that this way you could populate certain parts of an XML document directly with the XHTML-Output of the HTMLArea control (or

Re: [cforms] Simple XML binding

2004-06-08 Thread Reinhard Poetz
Daniel Fagerstrom wrote: I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter between a form object and a simple XML format that can be used without needing to wriite a binding definition. Thank you very much! I think this is a very valuable addition to Cocoon Forms and is the ans

Re: [cforms] Simple XML binding

2004-06-08 Thread Bruno Dumon
On Tue, 2004-06-08 at 18:11, Daniel Fagerstrom wrote: > I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter > between a form object and a simple XML format that can be used without > needing to wriite a binding definition. > > WDYT? Very useful addition. I've been thinking about

Re: [cforms] Simple XML binding

2004-06-08 Thread Andreas Hochsteger
Hi Daniel, this sounds really interesting! Would this functionality allow you to bind XML content to a textarea input element too? What I mean is, that this way you could populate certain parts of an XML document directly with the XHTML-Output of the HTMLArea control (or plain textarea if you li

[cforms] Simple XML binding

2004-06-08 Thread Daniel Fagerstrom
I have written an adapter: org.apache.cocoon.forms.util.XMLAdapter between a form object and a simple XML format that can be used without needing to wriite a binding definition. In the applications where we have used cforms we mostly have connected the form objects to XML through the binding fr