Re: Modular database actions

2012-11-16 Thread mika
2012/11/14 Mika M Lehtonen Hi, I am using ye old modular database actions which in my opinion is extremely handy tool. I was just wondering, how would I get some sort of a callback from e.g. insert/update action in order to tell the user that his/her data is saved? cheers, - mika - P.S

Re: Modular database actions

2012-11-15 Thread Mika M Lehtonen
am using ye old modular database actions which in my opinion is extremely handy tool. I was just wondering, how would I get some sort of a callback from e.g. insert/update action in order to tell the user that his/her data is saved? cheers, - mika - P.S. My two cents

Modular database actions

2012-11-14 Thread Mika M Lehtonen
Hi, I am using ye old modular database actions which in my opinion is extremely handy tool. I was just wondering, how would I get some sort of a callback from e.g. insert/update action in order to tell the user that his/her data is saved? cheers, - mika - P.S. My two cents

Re: Modular database actions

2012-11-14 Thread Christian Haul
Am 14.11.2012 21:21, schrieb Mika M Lehtonen: Hi, I am using ye old modular database actions which in my opinion is extremely handy tool. I was just wondering, how would I get some sort of a callback from e.g. insert/update action in order to tell the user that his/her data is saved? Gee

Re: Modular database actions

2012-11-14 Thread gelo1234
to consider very carefully your persistence logic. IMHO, we ought to have the option to use only those parts of API that we actually need. Greetings, Greg 2012/11/14 Mika M Lehtonen m...@digikartta.net Hi, I am using ye old modular database actions which in my opinion is extremely handy tool

Re: Modular Database Actions: SQL syntax error with MySQL

2005-07-01 Thread Nouguier Olivier
look for element autoincrement-modules in cocoon.xconf =Syntax error or access violation, message from server: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL IDENTITY()' at line 1 Now, given

Re: Modular Database Actions: SQL syntax error with MySQL

2005-06-30 Thread J.D. Williams
Let me put it another way. I changed this... create table user ( uid integer identity primary key, name varchar(50), firstname varchar(50), uname varchar(20), unique (uname) ); create table groups ( gid integer identity primary key, gname

Re: AW: CForms and Modular Database Actions

2005-06-20 Thread Derek Hohls
to anything but your own DAOs. How does one does this in a reusable way while using modular database actions or the SQL transformer? The answer is that you can't. And that makes it a bad idea. Take someone who has a small database of products, and just wants to put that online

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Derek Hohls
this in a reusable way while using modular database actions or the SQL transformer? The answer is that you can't. And that makes it a bad idea. I never argued Hibernate/OJB wrong or bad practive, I just outlined an alternative method to get a simple db-driven app up and running using a stock Cocoon

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Derek Hohls
Thanks for this Askild. [EMAIL PROTECTED] 2005/06/14 10:22:35 PM Bertrand Delacretaz wrote: Le 14 juin 05, à 16:45, Askild Aaberg Olsen a écrit : ...I'll see if I can make a demo of this concept tonight. A stock Cocoon-installation comes with a working database, so it should be easy to

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Bertrand Delacretaz
Le 14 juin 05, à 22:22, Askild Aaberg Olsen a écrit : ...I commited the sample in bugzilla as bug 35364. Have a look at it. Thanks, I have applied your patch to both the 2.1 branch and the 2.2 trunk, with slight modifications (additional comments and minor refactoring), see

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Upayavira
. How does one does this in a reusable way while using modular database actions or the SQL transformer? The answer is that you can't. And that makes it a bad idea. Take someone who has a small database of products, and just wants to put that online. No ecommerce, just a simple publication

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Bertrand Delacretaz
Le 15 juin 05, à 13:58, Upayavira a écrit : ...The point is, there are different people using Cocoon for different things. We need a lightweight way to integrate SQL and Cocoon forms. And on the documentation about it it should say this is only suitable for _very_ small sites, and will become

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Derek Hohls
implementation details behind DAOs. This way, you're not coupling your application logic to anything but your own DAOs. How does one does this in a reusable way while using modular database actions or the SQL transformer? The answer is that you can't. And that makes it a bad idea. Take

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Tony Edwards
those two particular solutions come with baggage. What I would recommend is wrapping all of those implementation details behind DAOs. This way, you're not coupling your application logic to anything but your own DAOs. How does one does this in a reusable way while using modular database actions

Re: CForms and Modular Database Actions

2005-06-14 Thread Derek Hohls
Hmm. Easy to say. But moving to Hibernate is a quite a major jump... a whole 'nother technology to digest. I assume that the deprecation status shows up in the code - it is not clearly indicated on the documentation website - see:

AW: CForms and Modular Database Actions

2005-06-14 Thread Lutz Thomas
Title: AW: CForms and Modular Database Actions From my personal experience I would not consider moving to Hibernate as very difficult. Following the wiki tutorial at http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial it took me a day to create a search form with result list

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Derek Hohls
-Ursprüngliche Nachricht- Von: Derek Hohls [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. Juni 2005 09:39 An: [EMAIL PROTECTED]; users@cocoon.apache.org Betreff: Re: CForms and Modular Database Actions Hmm. Easy to say. But moving to Hibernate is a quite a major jump... a whole 'nother

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
Derek Hohls wrote: Tom Ok; that is one viewpoint. But I think these quotes from the Wiki: http://wiki.apache.org/cocoon/GettingStartedWithCocoonAndHibernate are also pertinent: Be aware that you will not be ready to write Hibernate-based applications in 5 minutes. You are about to venture

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Derek Hohls
Askild My skills are similar to yours... but, I have not seen any documents or examples that deal with the creation of a full-fledged DB app that only uses XSLT, XML, SQL-transformer and Flow/CForms. I'd be very happy if you can point me in the right direction. Thanks. P.S. XSP is *not*

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
Yes, Derek, I have followed the discussion with great interest, but not participated myself. It seams like reason has won, and someone even tries to enhance the current XSP-block! 0:-) As a side note here, look at ?a=9396748682r=1w=2

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Derek Hohls
Askild Thanks for the tips... for me (and maybe others) I am sure a simple working demo [uh, the kind where you do not have to rebuild Cocoon and add/remove blocks etc etc!] would be very useful... even a series of code snippets. If it works, I would be happy to dress it up and add to the wiki.

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Joose Vettenranta
Hi! seems like I started one thread pointed here for modular db actions and forms.. I went OJB + Forms way to solve problems and I've been happy since =) I did small tutorial stuff on my homepage (and cp that once in to wiki, but it turned out to be mess.. didn't know how to fix it)..

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
Derek Hohls wrote: Askild Thanks for the tips... for me (and maybe others) I am sure a simple working demo [uh, the kind where you do not have to rebuild Cocoon and add/remove blocks etc etc!] would be very useful... even a series of code snippets. If it works, I would be happy to dress it

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Bertrand Delacretaz
Le 14 juin 05, à 16:45, Askild Aaberg Olsen a écrit : ...I'll see if I can make a demo of this concept tonight. A stock Cocoon-installation comes with a working database, so it should be easy to install and not too much work. I don't mean that using Cocoon as a Java-framework is wrong, I

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
Bertrand Delacretaz wrote: Le 14 juin 05, à 16:45, Askild Aaberg Olsen a écrit : ...I'll see if I can make a demo of this concept tonight. A stock Cocoon-installation comes with a working database, so it should be easy to install and not too much work. I don't mean that using Cocoon as a

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread WHIRLYCOTT
Askild Aaberg Olsen wrote: I'll see if I can make a demo of this concept tonight. A stock Cocoon-installation comes with a working database, so it should be easy to install and not too much work. I don't mean that using Cocoon as a Java-framework is wrong, I just want to address that

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
WHIRLYCOTT wrote: Askild Aaberg Olsen wrote: I'll see if I can make a demo of this concept tonight. A stock Cocoon-installation comes with a working database, so it should be easy to install and not too much work. I don't mean that using Cocoon as a Java-framework is wrong, I just want to

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread WHIRLYCOTT
It seems highly unlikely to me that someone who cannot master the important parts of a modern java application will be able to develop applications that will scale in complexity as the application requirements increase. If you think that java is overly complex, building a layer on top of it

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread Askild Aaberg Olsen
Harse, patronizing and true words. But application complexity was not the issue here... Askild WHIRLYCOTT wrote: It seems highly unlikely to me that someone who cannot master the important parts of a modern java application will be able to develop applications that will scale in complexity

Re: AW: CForms and Modular Database Actions

2005-06-14 Thread WHIRLYCOTT
this in a reusable way while using modular database actions or the SQL transformer? The answer is that you can't. And that makes it a bad idea. I never argued Hibernate/OJB wrong or bad practive, I just outlined an alternative method to get a simple db-driven app up and running using a stock

CForms and Modular Database Actions

2005-06-10 Thread Derek Hohls
From this post: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=109022027505726w=2 is woody (cforms) implemented so, that it can be easily combined with modular database actions? I didn't find any example or writing how to do this. If form is created then it would be nice to be also

Re: CForms and Modular Database Actions

2005-06-10 Thread Gregor J. Rothfuss
Derek Hohls wrote: It just seems strange that these both these technologies are developed inside of Cocoon without any simple way to link them... or what did I miss? stay away from modular db actions if you can. they are deprecated (which is why you won't find samples for it) and vastly

Re: Debugging Modular Database Actions...

2004-02-18 Thread Christian Haul
Derek Hohls wrote: I am struggling to get a simple database add performed when using the Modular Database Action (and, no, I do not want to do this in flow or some other way ;-). The log files do not show any errors - the database connection works OK for retrieving data (and I have checked the

AW: modular database actions

2003-12-04 Thread Garvin Riensche
Hallo Christian, To explicitly ask for number you would do value name=number type=int mode type=all name=request-param parameternumber/parameter /mode /value Vielen Dank! Jetzt funktioniert es. Viele Gru?e, Garvin

AW: modular database actions

2003-12-04 Thread Garvin Riensche
Sorry!!! I forgot to change the email adress... To explicitly ask for number you would do value name=number type=int mode type=all name=request-param parameternumber/parameter /mode /value Vielen Dank! Jetzt funktioniert es. regards,

Re: modular database actions

2003-12-03 Thread Christian Haul
Garvin Riensche wrote: hi there, i tried to create a simple example with modular database actions. the only thing i want cocoon to do is to store a number from a form field into my database. but it seems like cocoon doesn't propagate the input number from the form to the action as i always get

Re: Docs or examples for modular database actions?

2003-12-01 Thread Thomas Nichols
At 18:03 29/11/2003 +0100, Christian Haul wrote: Thomas Nichols wrote: BTW I've been reading docs on SOFIA recently From salmonllc.com? Looks interesting on paper - RAD for J2EE... Yep. Although I believe Cocoon is well up to the job ;-) So I am finding. and am wondering if we should provide

Re: Docs or examples for modular database actions?

2003-11-29 Thread Thomas Nichols
Chris, At 22:31 28/11/2003 +0100, Christian Haul wrote: Steve Schwarz wrote: ModularDb is quite stable and Christian has been very helpful in answering any questions. I can't quite put a finger on what is wrong :-D this saves me writing go ahead, just ask :-) Thanks! Hope to get some time on

Re: Docs or examples for modular database actions?

2003-11-29 Thread Christian Haul
Thomas Nichols wrote: BTW I've been reading docs on SOFIA recently From salmonllc.com? Looks interesting on paper - RAD for J2EE... Yep. Although I believe Cocoon is well up to the job ;-) and am wondering if we should provide a _second_, less powerful but simpler interface to esql: ol

Re: Docs or examples for modular database actions?

2003-11-28 Thread Steve Schwarz
Hi Thomas, I'm building a simple CrUD (Create/Update/Delete) db app, similar to the users/groups and users/depts examples, and I'd like to use - XSP/ESQL for queries (some of which could get quite complex) - modular DB actions for insert / update / delete. This is from experimentation

Re: Docs or examples for modular database actions?

2003-11-28 Thread Thomas Nichols
Hi Steve, At 16:33 28/11/2003 +, Steve Schwarz wrote: Hi Thomas, I'm building a simple CrUD (Create/Update/Delete) db app, similar to the users/groups and users/depts examples, and I'd like to use - XSP/ESQL for queries (some of which could get quite complex) - modular DB actions

Re: Docs or examples for modular database actions?

2003-11-28 Thread Christian Haul
Steve Schwarz wrote: ModularDb is quite stable and Christian has been very helpful in answering any questions. I can't quite put a finger on what is wrong :-D this saves me writing go ahead, just ask :-) BTW I've been reading docs on SOFIA recently and am wondering if we should provide a

Re: modular database actions and passing params from sitemap

2003-10-13 Thread Christian Haul
On 13.Oct.2003 -- 11:05 AM, Joose Vettenranta wrote: Hi, I didn't find info on the subject, to how to pass information to AddAction from sitemap. I have created resource, which I call with certain parameters. These parameters I would like to add to database.. little like this: AFAIK

Re: modular database actions and passing params from sitemap

2003-10-13 Thread Javier del Gesu
* Christian Haul [EMAIL PROTECTED] [2003-10-13 09:02]: On 13.Oct.2003 -- 11:05 AM, Joose Vettenranta wrote: I didn't find info on the subject, to how to pass information to AddAction from sitemap. I have created resource, which I call with certain parameters. These parameters I would

Update a pair of tables having a one-to-many cardinality in a transaction - modular database actions

2003-09-11 Thread John Williams
rows - items not available addition of some ORDER_LINE rows - items newly required update to some existing ORDER_LINE rows - new prices Looking at the functionality available in Modular Database Actions I notice that the add, update and delete must becalled separately and thus cannot be done