Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 38734 invoked from network); 4 Apr 2005 13:18:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2005 13:18:10 -0000 Received: (qmail 1399 invoked by uid 500); 4 Apr 2005 13:18:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1125 invoked by uid 500); 4 Apr 2005 13:18:01 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 73819 invoked by uid 99); 4 Apr 2005 13:03:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of web.schnirkel@gmx.at designates 213.165.64.20 as permitted sender) Date: Mon, 4 Apr 2005 15:03:28 +0200 (MEST) From: "Mattom" To: users@cocoon.apache.org MIME-Version: 1.0 Subject: Custom Generator, Custom Action, Flow X-Priority: 3 (Normal) X-Authenticated: #7708740 Message-ID: <11385.1112619808@www14.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all ! I am trying to use cocoon as web frontend for a very custom selfmade (not my work) db layer in a j2ee environment. This DB Layer provides a XML interface, where I can read and store XML Trees. I am quite new to cocoon and java, so I find it quite difficult to make decisions, and find the right way... so I am asking for some "design" help. Three problems: o) Selecting and displaying data with the custom db layer o) editing and updating data with the custom db layer o) how to use flow (flow for the whole webapp, or only parts) Problem I - Query ================= To get data from the db layer, i have to make a new instance, and pass it an instance of a query object. I managed to write a custom generator following the tutorial at http://people.apache.org/~reinhard/2.2/tutorial/tutorial-rmi-generator.html which works without the query object. This generator takes the "table name" as parameter and returns a select *. Now I am struggling with the query object. I want to have a form to submit the search criteria, but I am not sure where to submit ? I need a java class to parse the request parameters to a query object and then pass this query object to the generator, but what is the best way to accomplish this ? Should I use flow and continuation ? Or are there other ways ? Problem II Update Insert ======================== Well, this is quite the same thing as Problem I. I have to build a query object, pass it to the db layer, and then pass the selected data to a form (cform ?). Maybe I should use form binding, still have to read some docs here. But, how to insert or update ? Write a custom action or again use flow ? When i use flow, what happens if the user decides to leave the workflow before submitting the data ? Do I have a "zombie" in my session then ? Problem III Usage of Flow ========================= All the flow examples I found demonstrate flow(script) in a small scope, just calculating something, or controlling access to just a few pages. If everything works out well, the "framework" we are building will be used to access databases with about 250 tables, and many different workflows will be possible within the webapp. Can I implement one master flow (a "void main()"), that manages the session cleaning, user guidance and some subflows for the more detailed workflows, containing again subflows for tasks like inserting or updating ? Thanks for your help ! Tom (Lutz) -- Handyrechnung zu hoch? Tipp: SMS und MMS mit GMX Seien Sie so frei: Alle Infos unter http://www.gmx.net/de/go/freesms --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org