Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 44597 invoked by uid 500); 21 Mar 2003 10:40:58 -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 44498 invoked from network); 21 Mar 2003 10:40:57 -0000 Received: from goofy.fi.upm.es (138.100.8.23) by daedalus.apache.org with SMTP; 21 Mar 2003 10:40:57 -0000 Received: from zape.fi.upm.es (zape.fi.upm.es [138.100.8.1]) by relay.fi.upm.es (PMDF V6.2 #30616) with ESMTPS id <01KTS7YAEM5U000K9H@relay.fi.upm.es> for cocoon-users@xml.apache.org; Fri, 21 Mar 2003 10:48:48 +0100 (MET) Received: from conversion.mail.fi.upm.es by mail.fi.upm.es (PMDF V6.2 #30616) id <01KTS7Y6WVM80009CD@mail.fi.upm.es> for cocoon-users@xml.apache.org; Fri, 21 Mar 2003 10:48:44 +0100 (MET) Received: from laptopsklein (sri26.sri.fi.upm.es [138.100.242.26]) by mail.fi.upm.es (PMDF V6.2 #30616) with SMTP id <01KTS7Y565RW0009PG@mail.fi.upm.es> for cocoon-users@xml.apache.org; Fri, 21 Mar 2003 10:48:41 +0100 (MET) Date: Fri, 21 Mar 2003 10:48:22 +0100 From: Stefan Klein Subject: Re: database forms To: cocoon-users@xml.apache.org Reply-to: Stefan Klein Message-id: <014301c2ef8f$02f1d480$1af2648a@laptopsklein> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <006901c2eedc$a781c270$1af2648a@laptopsklein> <3E79F352.3080907@wyona.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Thorsten, thanks for your reply. I've been pondering about your mail for a little while now. The xsl looks like a clever idea. A few things remain unclear to me: What way do you use to get the data out of the DB. SQL-Transformer? What do you refer to by static and variable data? static=the definition of the form (as in your XML example), variable=the data from the DB? How do you get the data back into the database? using actions, I suppose? In your example you've only got textboxes. With listboxes ( > select="name()"/> > > > > select="normalize-space(text())"/> > > > > > > with this xml: >
> > UTF-8 > UTF-8 > eng > > Google-Search > > > > > ... > > King regards > Thorsten > > Stefan Klein wrote: > > >Hi all, > > > >I am looking for the quickest way to write database forms. It is something > >that I will be doing thousands of times, so the goal is to find some really > >efficient way. > > > >Ideally it would look something like: > >table name
- selects the table > > > > - a simple input field bound to a field in the > >table > > > > - a > >listbox bound to a field, entries defines the options visible to the user, > >values defines what is internally stored in the field. obviously the table > >would be the same (useful for foreign key entries) > > > > > > > > >The form would be populated automatically with the database values (the > >current record being selected by a request parameter) and update the values > >on submit. > > > >What I've been pondering about for quite a while now is what would be the > >best way to implement this in cocoon. > > > >I looked into the "departments and employees"-tutorial delivered with > >cocoon2, which is quite close to what I'd like, but still not it. For > >example I don't like having to define listboxes and populate the form by > >using separate esql-statements. What data to fill into the form should > >already be specified in the form definition. > >My first idea was to start from there and implement a logicsheet that would > >allow me to define tags like the ones above. > > > >Then I looked into xmlforms and liked them a lot. However: > >1. I am still looking for a tag reference. Maybe someone can help out. > >2. I am still not entirely sure how they might help me. Surely it would be > >possible to write a JavaBean that accesses the database, but doing that > >every time again is not the simplification I am looking for. Is there a way > >to reference database fields directly from the forms? > > > > > >Basically, I would be very grateful for any kind of hint you can offer on > >how to use xmlforms for this or on other ways of accomplishing the task > >(maybe there would even be ways to take the database description and > >generate a form from it?). I am quite stuck for ideas, but it seems a > >standard job so I am sure many people have already found sufficient ways to > >do it. > > > > > >Thanks in advance > >Stefan > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > >For additional commands, e-mail: cocoon-users-help@xml.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > For additional commands, e-mail: cocoon-users-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org