Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 31072 invoked by uid 500); 14 Jun 2002 03:17:42 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 31059 invoked from network); 14 Jun 2002 03:17:42 -0000 Message-ID: <3D095F22.2040504@apache.org> Date: Thu, 13 Jun 2002 22:12:34 -0500 From: Ivelin Ivanov User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mohamed El-Refaey CC: cocoon-users@xml.apache.org Subject: Re: DataBinding with XMLForm References: <007201c2129e$dbb28e00$0e01000a@IMKENBEREFBF6G> Content-Type: text/plain; charset=windows-1256; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Mohamed, Mohamed El-Refaey wrote: > > Hi all, > > I'm very interested in the cocoon XMLForm and, but I'd like to ask a > question: > is it possible to repeate XMLForm dynamically according to data from > Database ?and HOW I can make data binding of this retrived data with > each repeated form instance.? > > for Example : > I have products from the DB and I wanna to display these products in > XMLForms to update their quantity in it > > ---------------------------------------------------------------------------------------------------------------------- > Product1 > ID :12236 > Name > :p1 > ---------------------- > Description: any description. quantity(Text Box) > ------------------- Update Button > > ------------------- ---------------------- > ----------------------------------------------------------------------------------------------------------- > ----------------------------------------------------------------------------------------------------------------------- > Product2 > ID :12256 > Name > :p2 > ---------------------- > Description: any description. quantity(Text Box) > ------------------- Update Button > ------------------- > ---------------------- > ----------------------------------------------------------------------------------------------------------------------- > ----------------------------------------------------------------------------------------------------------------------- > Product3 > ID :12776 > Name > :p3 > ---------------------- > Description: any description. quantity(Text Box) > ------------------- Update Button > ------------------- > ---------------------- > ----------------------------------------------------------------------------------------------------------------------- > > or it is better to make all these data as container Bean that contain > products beans and this container is binded with only one Big form > instance to process it instead of one form instance for each product. ? In my experience, this approach is preferable. Scales better and allows strict control over transaction boundaries, caching, etc. You can use either beans or DOM, depending on how much logic is involved in the data processing. Ivelin > > any help ? > Thanx in advance > Mohamed -- -= Ivelin =- --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: