cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [Woody] observations, issues, questions, best practices
Date Thu, 15 Jan 2004 22:20:02 GMT
On 15.01.2004 22:46, Marc Portier wrote:

>>>> 4. The switching of binding to XML or beans costs to much effort. 
>>>> Binding file, JXTemplate (for the result), flow script. Maybe I did 
>>>> something the wrong way, but the XML needs at least a root element, 
>>>> why this would be annoying for the bean. Some ideas for that?
>>>
>>> hm, both are supported, but that doesn't necesarrily mean that 
>>> swapping between both is that easy.
>>>
>>> I encountered the same when doing the first of my binding-samples... 
>>> I ended up switching easily by not passing the DOM directly into the 
>>> binding, but rather the root-node.   Note: when binding to XML you 
>>> need to pass in a DOM Node, not a DOM Document!
>>
>> Sometimes it's soo simple. But could it be that it is a one-way ticket? 
> 
> nope works both ways for me, of course I write back to the same document 
> I read fromm
> 
>> Saving the "document" back does not work, because document is null.
> 
> howcome?

Good question. I simply used the woody2.js and the loadDocument() and 
saveDocument() from binding.js. Hmm, I will look again.

Joerg


Mime
View raw message