cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [cforms] XML binding, bind to DOM subtree?
Date Wed, 19 Oct 2005 14:35:28 GMT
Mark Lundquist wrote:
> Hi,
>
> I have a problem that I'd like to solve with the binding framework 
> binding to XML.  It's a simple CRUD scenario operating on a small data 
> set that could easily be maintained as an XML document in a file -- 
> don't really need a database for this.  The data consists of a list of 
> elements, and I would use a repeater to add/delete/move those.  
> However, editing the contents of the elements themselves needs to be 
> done in a separate "details" form, as the controls are rather too big 
> to include in the repeater -- there'll be an htmlarea or something 
> like that.  Plus, the usability design calls for a "one-at-a-time" 
> usage model for editing these things.
>
> So, it seems that what I need to do is to bind this "details" form to 
> a subtree of the XML document.  Is there any way to do that?

Sure! Form binding can apply to any element, and not only documents! So 
just load/save your form with the relevant element in the XML document.

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


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


Mime
View raw message