Re: Adding date and time to a xml file

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 10:52 PM, Derek Hohls wrote: Side comment: aren't the extensions linked to a specific processor e.g. Xalan or Saxon... or there are extensions that work for all of them? Extensions certainly don't have to be processor-specific. The exslt extensions are not meant to be, but tha

Re: cannot convert a tree fragment in noodelist function

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 11:19 PM, Marc Salvetti wrote: Cheers Mark, it's working now ah, great :-) my problem is still unsolved through, as i don't see the way to match "the first table row that got the max number of cells", but as you said, it's more of a xsl mailing list question... btw, when i lo

Re: cannot convert a tree fragment in noodelist function

2005-01-17 Thread Marc Salvetti
Cheers Mark, it's working now my problem is still unsolved through, as i don't see the way to match "the first table row that got the max number of cells", but as you said, it's more of a xsl mailing list question... btw, when i look at the doc on exslt.org, the namespace is xmlns:exsl="http://e

Antw: Class not found: JspServlet

2005-01-17 Thread Martin Geissler
Hello Justin in cocoon 2.1.6 does the JSP block not work with the build in jetty. With tomcat it works. for me. In order to work you need a jdk not a jre. hth Martin >>> [EMAIL PROTECTED] Dienstag, 18. Januar 2005 02:00:54 >>> I've included the JSP block, but I'm getting this error when trying t

Re: Adding date and time to a xml file

2005-01-17 Thread Derek Hohls
Side comment: aren't the extensions linked to a specific processor e.g. Xalan or Saxon... or there are extensions that work for all of them? >>> [EMAIL PROTECTED] 2005/01/17 08:34:52 PM >>> On Jan 16, 2005, at 11:45 PM, Bertrand Delacretaz wrote: > Note that this is easy to do with XSLT extensio

[SOLVED, BUT] Re: REPOST: Cocoon Forms - Javascript errors

2005-01-17 Thread Derek Hohls
Found the cause of the error - in my "remove value" repeater I had not correctly specified the selector widget that determines which row/s has been selected for deletion ie. I had: instead of: I do think that a better error message could have been generated; if the sytem had complained it co

Class not found: JspServlet

2005-01-17 Thread Justin Fagnani
I've included the JSP block, but I'm getting this error when trying to run some JSPs. org.apache.cocoon.ProcessingException: Exception JSPGenerator.generate(): java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet I can't see any jasper related JARs in the lib directory. Does C

Re: Conversion of complex form to cforms

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 3:49 PM, Adam Ratcliffe wrote: I'm using the forms Flow API that comes with 2.1.6, is that v2? 2.1.6 has both. You probably use load() in the flowscript to pull in the forms API... if the path has "v2" in it, then it's v2. see http://marc.theaimsgroup.com/?l=xml-cocoon-users&

How to access context initparam in sitemap.xmap

2005-01-17 Thread Glenn Rush
| How to access context init param in sitemap.xmap | I am having trouble accessing a context initialization parameter in cocoon's sitemap.xmap. The initialization parameter has been set in a w

RE: Conversion of complex form to cforms

2005-01-17 Thread Adam Ratcliffe
> That's pretty much what document.load() does, and you can create a > document using document.implementation.createDocument... except > Internet Exploder used to not be able to do this, maybe it does now... > see http://www.quirksmode.org/dom/importxml.html for how to do it > differently in IE if

RE: Using business objects instead of XML

2005-01-17 Thread Adam Ratcliffe
> This point is moot. Hibernate can use Apache DBCP or a pooled > DataSource provided by your container, there's no reason to use either > Hibernate's pooling or Excalibur's. Thanks for clarifying this point Ugo. Cheers Adam

Re: Conversion of complex form to cforms

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 2:52 PM, Adam Ratcliffe wrote: Hi Mark, When I put together the original implementation I gave some thought to doing it all on the client-side, I was going to do something like load all of the data into JS arrays as currently the category tree isn't so extensive. A more respon

Re: Using business objects instead of XML

2005-01-17 Thread Ugo Cei
Il giorno 17/gen/05, alle 22:30, Adam Ratcliffe ha scritto: - use of Cocoon's connection pooling rather than the hibernate pooling which is not recommended for production use. This point is moot. Hibernate can use Apache DBCP or a pooled DataSource provided by your container, there's no reason to

Re: Weblog with Cocoon.

2005-01-17 Thread Ugo Cei
Il giorno 17/gen/05, alle 22:23, Stefan Burkard ha scritto: i'm not sure, but i guess that this blog of a cocoon-commiter is done with linotype: http://beblogging.com/blog/ Not really. There's not much left of Linotype there, except for the CSS. And I've recently switched to using blojsom, since

RE: Conversion of complex form to cforms

2005-01-17 Thread Adam Ratcliffe
Hi Mark, When I put together the original implementation I gave some thought to doing it all on the client-side, I was going to do something like load all of the data into JS arrays as currently the category tree isn't so extensive. A more responsive interface would certainly be good. With way #2

Re: Using business objects instead of XML

2005-01-17 Thread Brian Burridge
I didn't mention Spring because I didn't want to complicate things yet, but yes Spring will be used and already is (just not from within Cocoon). I'll check that link you sent. Thanks. Brian On Mon, 2005-01-17 at 16:25, Mark Lundquist wrote: > On Jan 17, 2005, at 11:11 AM, Brian Burridge wrote: >

Re: Conversion of complex form to cforms

2005-01-17 Thread Mark Lundquist
On Jan 16, 2005, at 3:51 PM, Adam Ratcliffe wrote: Hi,   I have a reasonably complex form design that I'd like to convert to cforms. Being new to cforms I'm not sure how much work is involved in doing this, can anyone give me an idea as to A) whether this is possible using cforms; and B) if using

Re: Using business objects instead of XML

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 12:32 PM, Adam Ratcliffe wrote: Building on Mark's code snippets, if bizObject was an instance of a persistable object you would retrieve it using a Java class that created Hibernate sessions, this class should implement the appropriate Avalon lifecycle interfaces so that it ca

RE: Using business objects instead of XML

2005-01-17 Thread Adam Ratcliffe
Hi Uzo The important points in integrating hibernate with seem to be: - use of Cocoon's connection pooling rather than the hibernate pooling which is not recommended for production use. - use of a servlet filter for closing the hibernate session, essential if you're using lazy intitialization of

Re: Using business objects instead of XML

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 11:11 AM, Brian Burridge wrote: Where do I put the code to get the Hibernate objects? Right now, with the GUI framework they have, its done in a Struts action, which then forwards to a JSP page and uses struts tags to display the contents of the objects. If you implement your mo

Re: Weblog with Cocoon.

2005-01-17 Thread Stefan Burkard
hello have a look at the blocks-section in the samples of an installed cocoon. there you will find a block called linotype, which is a blog-application. i'm not sure, but i guess that this blog of a cocoon-commiter is done with linotype: http://beblogging.com/blog/ greetings stefan Aurélien DEH

Re: Using business objects instead of XML

2005-01-17 Thread beyaRecords
On 17 Jan 2005, at 20:32, Adam Ratcliffe wrote: var factory = cocoon.getComponent(Packages.org.test.PersistenceFactory.ROLE); You could then get your bizData like this: var hs = factory.createSession(); var bizData = hs.find("from org.test.Data"); Adam, never thought to do it this way, as I leave a

Re: Using business objects instead of XML

2005-01-17 Thread Ugo Cei
Il giorno 17/gen/05, alle 20:11, Brian Burridge ha scritto: Where do I put the code to get the Hibernate objects? Right now, with the GUI framework they have, its done in a Struts action, which then forwards to a JSP page and uses struts tags to display the contents of the objects. You can do it in

RE: Using business objects instead of XML

2005-01-17 Thread Adam Ratcliffe
Hi Brian, Building on Mark's code snippets, if bizObject was an instance of a persistable object you would retrieve it using a Java class that created Hibernate sessions, this class should implement the appropriate Avalon lifecycle interfaces so that it can be managed by the Cocoon component manag

hibernate or cocoons own persistence implementation??

2005-01-17 Thread beyaRecords
Which one is better to use? I use hibernate only because when I started my project i didn't know one existed within cocoon. regards Uzo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Need help with Cforms binding

2005-01-17 Thread Christoph Hermann
Christoph Hermann schrieb: Hello, > > Inserting new Rights works fine, the problem is that when i change > > a right the old value is deleted from the Rights Table instead of > > only deleting the entry in the reference table. > > Can anyone of you help me how out on how an m:n relationship shoul

Re: Using business objects instead of XML

2005-01-17 Thread Brian Burridge
Using hibernate is what I want to find out about, because where I work they already use hibernate. Where do I put the code to get the Hibernate objects? Right now, with the GUI framework they have, its done in a Struts action, which then forwards to a JSP page and uses struts tags to display the c

Re: Using business objects instead of XML

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 10:26 AM, Brian Burridge wrote: Sorry if this is a very basic question. I have a several months experience with Cocoon, but I've only done XML pipeline work. I'm wondering how Cocoon can be used, if you are going to be using business objects from the DB, for example Hibernate. I

Re: Adding date and time to a xml file

2005-01-17 Thread Mark Lundquist
On Jan 16, 2005, at 11:45 PM, Bertrand Delacretaz wrote: Note that this is easy to do with XSLT extensions, just create a java.util.Date object and use a SimpleDateFormat or something similar to format the date. Also note that is long as you're using XSLT extensions, if you're just getting the

Re: Using business objects instead of XML

2005-01-17 Thread beyaRecords
On 17 Jan 2005, at 18:26, Brian Burridge wrote: My question is how does cocoon work with Bus I use cocoon with hibernate via flowscript/jx, but cocoon does have it's own persistence layer which you should look ivnto. regards Uzo

Re: Adding date and time to a xml file

2005-01-17 Thread Mark Lundquist
On Jan 15, 2005, at 7:22 AM, Joerg Heinicke wrote: On 15.01.2005 14:28, lincoln wrote: I have a form that once submitted will append data to the end of an XML file. I also need to append the date and time that this data was added. eg: Thur... ... ... .. Fri... ..

Using business objects instead of XML

2005-01-17 Thread Brian Burridge
Sorry if this is a very basic question. I have a several months experience with Cocoon, but I've only done XML pipeline work. I'm wondering how Cocoon can be used, if you are going to be using business objects from the DB, for example Hibernate. I have seen the Wiki on integrating Hibernate (and th

Re: Adding date and time to a xml file

2005-01-17 Thread Joerg Heinicke
In the mail http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110583089425658&w=4 I wrote it's just the proof of principle. Using form.getWidget("myDate").value = new Packages.java.util.Date(); in the flowscript makes your flowscript dependent on the form - what it should not be. The correct

Re: Cforms on-load like

2005-01-17 Thread Carlos Chávez
Christoph Hermann Escribio :-) > Mark Lundquist schrieb: > > Hello, > >> > is there something like an on-load for a widget? >> > I want to set the value of a select-list depending on the value of >> > another widget when the form is loaded. (I need something to set >> > the selected value when the

Long running requests and timeouts?

2005-01-17 Thread Andrzej Jan Taramina
I have a situation where some requests that get sent to Cocoon are very long running (basically batch operations). I've been testing with a request that takes just over 7 minutes to process and returns and XML document as a response. The problem I'm having is that the response gets truncated.

[basic] query using cocoon 2.1.6

2005-01-17 Thread José Ferreiro - TSSAG
Hi,   I am trying to do a query like this one: select * from  auto where id=”1234567”   I would like to have a form where the user  may enter the id that is to say “1234567”. after the user completed the form he will submit it and by doing that the query should be executed and a row

Re: [basic] query using cocoon 2.1.6

2005-01-17 Thread beyaRecords
On 17 Jan 2005, at 15:05, José Ferreiro - TSSAG wrote: Did someone try to do a query from a form using cocoon 2.1.6? can you provide more information about what it is you are trying to achieve?

[basic] query using cocoon 2.1.6

2005-01-17 Thread José Ferreiro - TSSAG
Hello,   Did someone try to do a query from a form using cocoon 2.1.6?   Any example or tip will be welcome. Thanks   regards

Re: cannot convert a tree fragment in noodelist function

2005-01-17 Thread Mark Lundquist
On Jan 17, 2005, at 4:37 AM, Marc Salvetti wrote: hello, i'm trying to write a template to convert a html table to pdf the problem is that the table-fo structure need the table columns to be declared beforehand. so i want to find the line of the table with the maximum number of cells (because of

dynamic query xsp (esql) in portal using javaflow

2005-01-17 Thread José Ferreiro - TSSAG
Hi cocoonist,   I am trying to do a form where the user will give an input (later on it will be the parameter to perform a query in the database). I am using cocoon 2.1.6 standalone (no apache, no apache tomcat servlet)   I wrote the javaflow to implement the form after that I tried to

cannot convert a tree fragment in noodelist function

2005-01-17 Thread Marc Salvetti
hello, i'm trying to write a template to convert a html table to pdf the problem is that the table-fo structure need the table columns to be declared beforehand. so i want to find the line of the table with the maximum number of cells (because of eventual colspan columns) and transform it in colu

Re: Input type button

2005-01-17 Thread Mark Lundquist
Hello, On Jan 17, 2005, at 3:25 AM, angeloimm wrote: Hi all... i'm using cocoon cforms version 2.1.5..i need to insert an input type="button" in my form; well in order to do this i have done this template: . . . Allega File [...snip] then

Re: The continuation ID 20291f0c2362515e0c85125b355a1d332b194f57 is invalid.

2005-01-17 Thread beyaRecords
On 17 Jan 2005, at 11:45, Reinhard Poetz wrote: Have a look at the root sitemap that comes with Cocoon. There you'll find a section with error handlers. It also contains the error handler that catches invalid continuation IDs. Thanks guys, I will try your suggestions. regards Uzo

Re: The continuation ID 20291f0c2362515e0c85125b355a1d332b194f57 is invalid.

2005-01-17 Thread george georgovassilis
Sure, how about (inspired from the main sitemap): ... ... beyaRecords wrote: How to best deal with this? i know why it is being caused. I just don't want my clients seeing that horrible error pa

Re: The continuation ID 20291f0c2362515e0c85125b355a1d332b194f57 is invalid.

2005-01-17 Thread Reinhard Poetz
beyaRecords wrote: How to best deal with this? i know why it is being caused. I just don't want my clients seeing that horrible error page. Is there no way I can, soften the situation, by placing a pipe in my sitemap which checks for this problem and then redirects the user to to a particular pa

The continuation ID 20291f0c2362515e0c85125b355a1d332b194f57 is invalid.

2005-01-17 Thread beyaRecords
How to best deal with this? i know why it is being caused. I just don't want my clients seeing that horrible error page. Is there no way I can, soften the situation, by placing a pipe in my sitemap which checks for this problem and then redirects the user to to a particular page of my choice??

Input type button

2005-01-17 Thread angeloimm
Hi all... i'm using cocoon cforms version 2.1.5..i need to insert an input type="button" in my form; well in order to do this i have done this template: Allegato Allegato Allegato selezione* nome

Re: flowscript

2005-01-17 Thread Reinhard Poetz
Mygrp wrote: im getting the same error again Im using cocoon 2.1.3 I'm not sure, if this module is available in 2.1.3. Maybe it was introduced later ... :-( where actually is this in cocoon.xconf? WEB-INF/cocoon.xconf -- Reinhard

Re: flowscript

2005-01-17 Thread Mygrp
im getting the same error again Im using cocoon 2.1.3 where actually is this in cocoon.xconf? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: flowscript accessing forms object

2005-01-17 Thread Adam Ratcliffe
Hi Murray I'm assuming you're using CForms in which case your flowscript would look something like this: var form = new Form("forms/formModel.xml"); form.showForm("form-display-pipeline"); if(form.isValid) { var model = form.getModel(); var field1 = model.field1; var fiel

Re: flowscript

2005-01-17 Thread Reinhard Poetz
Mygrp wrote: tried this...but i get an error org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [flow-attr] (key [flow-attr]) hmmm. maybe you use an older Cocoon version. Try {flow-attribute:id} which seems to be the old

flowscript accessing forms object

2005-01-17 Thread Murray Cassie
Hi, could anyone tell me (best with example) how I access the POST DATA from inside a flow script. I need to access fields in the form object. Thanks and best regards Cassie __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://

RE: Help with redestructuring of sitemaps and URI space

2005-01-17 Thread Adam Ratcliffe
A typo, but it might come to that yet ;-) Cheers Adam -Original Message- From: Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Monday, 17 January 2005 7:49 p.m. To: users@cocoon.apache.org Subject: Re: Help with redestructuring of sitemaps and URI space BTW, I like your Subject: line...

Weblog with Cocoon.

2005-01-17 Thread Aurélien DEHAY
Hello. I'm looking for a weblog tool running on Cocoon. I've found Cocoblog, but it seem rather dead. If someone knows/has such a tool, please let it know. Regards. -- Aurélien DEHAY - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

RE: Help with redestructuring of sitemaps and URI space

2005-01-17 Thread Adam Ratcliffe
Hi Mark, Yes, that's a lot tidier. Thanks very much for your help. Cheers Adam -Original Message- From: Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Monday, 17 January 2005 7:29 p.m. To: users@cocoon.apache.org Subject: Re: Help with redestructuring of sitemaps and URI space On Jan

Re: flowscript

2005-01-17 Thread Mygrp
tried this...but i get an error org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [flow-attr] (key [flow-attr]) do i need to declare it before ?? - T

how to use part of the output of the sql-transformer in the pipeline

2005-01-17 Thread Frank Rennekamp
Hello, what I want to do is quite simple: I want to select an email address from the database and use this email as the receiver address in the sendmail module. But how can I access the value from the xml file? i have a xml file that comes from a sql-transformer that querries a db...here is the