Re: Initialize Session Context Info

2005-10-17 Thread Reinhard Poetz
Merico Raffaele wrote: Dear community I am looking for a way to initialize some session context information when the session is created. Which is the best way to initialize things at the session creation status? Is there a central point that can be extended? Many thank in advance ... Raffaele

Re: Initialize Session Context Info

2005-10-17 Thread Geert Josten
How do you create your sessions? Action? Flowscript? I used flowscript to create sessions and it is very easy to add some initialization code to it as well.. Cheers, Geert Merico Raffaele wrote: Dear community I am looking for a way to initialize some session context information when the se

Re: More than one lifecycle interface

2005-10-17 Thread Sylvain Wallez
Ralph Goers wrote: No, but it makes sense since they each have characterstics that are incompatible with each other. SingleThreaded implies that the class is a singleton and is not thread safe and should essentially be executed in a serial fashion (a huge bottleneck). SingleThreaded doesn't m

Initialize Session Context Info

2005-10-17 Thread Merico Raffaele
Dear community I am looking for a way to initialize some session context information when the session is created. Which is the best way to initialize things at the session creation status? Is there a central point that can be extended? Many thank in advance ... Raffaele

Fwd: Diagram?

2005-10-17 Thread Bertrand Delacretaz
(Replying to an off-list message) De: "Mark E. Reschke" <[EMAIL PROTECTED]> Date: 18 octobre 2005 00:26:35 GMT+02:00 ... Hello, I have a SW developer my small business is using who uses a Unix, Apache, MySQL, Cocoon model. Is there any image or any sort of visual diagram of this model and p

Re: More than one lifecycle interface

2005-10-17 Thread Ralph Goers
No, but it makes sense since they each have characterstics that are incompatible with each other. SingleThreaded implies that the class is a singleton and is not thread safe and should essentially be executed in a serial fashion (a huge bottleneck). ThreadSafe - the class is rentrant and can be

More than one lifecycle interface

2005-10-17 Thread Lachlan Paterson
Has anyone run into a problem like this? [CONFLICT] More than one lifecycle interface in [my class] May implement no more than one of SingleThreaded, ThreadSafe, or Poolable

Another completed Cocoon Project

2005-10-17 Thread Gerry Kaplan
For those who may be interested in seeing another up-and-running Cocoon-based site, I have recently deployed a medical reporting application called "ImpairMaster" which can be seen at http://www.impairmaster.com. In a nutshell, it is a tool used by physicians for determining what percentage a pers

Re: Error while reading resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml

2005-10-17 Thread Sylvain Wallez
Sullivan, Sean C - MWT wrote: The root exception is a NullPointerException. The exception is coming from the SourceResolverImpl class. I am using excalibur-sourceresolve-1.1.jar in this application. How can I fix exception? I don't know. Your setup seems to be quite broken if Cocoon canno

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread David Legg
David Legg Wrote: Perhaps this behaviour is only apparent on Jetty? I intend to run it under Tomcat 5.5. It's OK! Maybe I was just a little too fast for the file system to catch-up or maybe it was due to adding the Contextualizable interface. While experimenting I waited a little longer th

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread David Legg
Kai Mütz wrote: Does your Component implement the org.apache.avalon.framework.thread.ThreadSafe interface? Components I am working on at the moment are implementing this interface and are initialized at cocoon startup. Yes, it is a ThreadSafe component. Perhaps this behaviour is only apparen

RE: Error while reading resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml

2005-10-17 Thread Sullivan, Sean C - MWT
The root exception is a NullPointerException. The exception is coming from the SourceResolverImpl class. I am using excalibur-sourceresolve-1.1.jar in this application. How can I fix exception? java.lang.NullPointerException at org.apache.excalibur.source.impl.SourceResolverImpl.resol

RE: 'Hello World' for Cocoon component builders?

2005-10-17 Thread Kai Mütz
Does your Component implement the org.apache.avalon.framework.thread.ThreadSafe interface? Components I am working on at the moment are implementing this interface and are initialized at cocoon startup. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread David Legg
Sylvain Wallez Wrote: My initialise() method is now sending a log message (strangely not at Cocoon boot time but the first time I access the web app). This is because initialization doesn't inevitably mean "at startup time". Depending on the case, it can also happen the first time the componen

Re: [CForms/flow/ajax] Weird problem with ajax="true"

2005-10-17 Thread Sylvain Wallez
Thorsten Scherler wrote: Instead I get http://pastebin.com/393378 java.lang.IllegalStateException. The problem is that in ./src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/Form.js cocoon.sendStatus(200); seems to close the OutputStream while the following code tries to

Re: Beginners Question

2005-10-17 Thread Sylvain Wallez
Derry O'Sullivan wrote: Hi all, I'm running Cocoon 2.0.3 on Tomcat 4.1 to develop an extension to an existing cocoon based application. The task is to adapt existing xml output created by a java generator. I've looked into aggregation and transformations to try and get this to work. What i wa

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread Sylvain Wallez
David Legg wrote: Thanks for all the responses. Kai Mutz wrote: Check this: http://excalibur.apache.org/developing/index.html Thanks for the link Kai. As it happens I had already read that article and it came closest to the sort of thing I was looking for. You can also have a look at htt

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread David Legg
Thanks for all the responses. Kai Mutz wrote: Check this: http://excalibur.apache.org/developing/index.html Thanks for the link Kai. As it happens I had already read that article and it came closest to the sort of thing I was looking for. You have to define a Component as "the combination

Re: Beginners Question

2005-10-17 Thread Geert Josten
You can write an XSLT or STX stylesheet for that and use the corresponding transformer to apply it to the XML... Cheers, Geert Derry O'Sullivan wrote: Hi all, I'm running Cocoon 2.0.3 on Tomcat 4.1 to develop an extension to an existing cocoon based application. The task is to adapt existing

Re: Return xml from an Action to the pipeline?

2005-10-17 Thread Lachlan Paterson
Yes, you are probably right. I will try that. I see the answer was also in the 2.0 FAQ. http://cocoon.apache.org/2.0/faq/faq-sitemap.html#faq-4 The 2.1 FAQ is still empty, alas. I didn't think to check the older one - but google found it for me. On 10/17/05, Chris Marasti-Georg <[EMAIL PROTECTED

Beginners Question

2005-10-17 Thread Derry O'Sullivan
Hi all, I'm running Cocoon 2.0.3 on Tomcat 4.1 to develop an extension to an existing cocoon based application. The task is to adapt existing xml output created by a java generator. I've looked into aggregation and transformations to try and get this to work. What i want to do is essence is c

Re: Junk(HTML) characters displayed in textarea fields

2005-10-17 Thread Jonas Lundberg
Hi, you get that problem with XHTML. The browsers cannot render a . But maybe you use HTML4? Then it should be no problem to render a . HansOn 10/17/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: Hi,  We are using cocoon-2.1.7 + jboss-3.2.7 + windows2000 professional.     We are genera

Re: Writing my own generator.

2005-10-17 Thread Ralph Goers
Aurélien DEHAY wrote: Hello all. I'm currently writing a generator. I'm a bit mess up about dispose() recycle(), Serviceable, Disposable and CacheableProcessingComponent... What do I really need to have a cacheable and poolable generator? I've read the tutorial "Write a Custom Generator", b

Re: Writing my own generator.

2005-10-17 Thread Reinhard Poetz
Aurélien DEHAY wrote: Hello all. I'm currently writing a generator. I'm a bit mess up about dispose() recycle(), Serviceable, Disposable and CacheableProcessingComponent... What do I really need to have a cacheable and poolable generator? I've read the tutorial "Write a Custom Generator", bu

Writing my own generator.

2005-10-17 Thread Aurélien DEHAY
Hello all. I'm currently writing a generator. I'm a bit mess up about dispose() recycle(), Serviceable, Disposable and CacheableProcessingComponent... What do I really need to have a cacheable and poolable generator? I've read the tutorial "Write a Custom Generator", but the Composable and D

Junk(HTML) characters displayed in textarea fields

2005-10-17 Thread vijayaraghavan.subramaniam
Title: Message Hi,  We are using cocoon-2.1.7 + jboss-3.2.7 + windows2000 professional.     We are generating a Cocoon form page dynamically using xslt, as per my project requirement.  We are getting junk character(actually part of html gets displayed as contents of text area)displayed in

Re: 'Hello World' for Cocoon component builders?

2005-10-17 Thread Ralph Goers
Roles are not required. They make the cocoon.xconf more readable though. Justin Fagnani wrote: I haven't done this in quite a while, but I'm pretty sure you need to add a role for your class in user.roles -Justin - To un

Re: Cocoon Hangs with OpenSessionInViewFilter

2005-10-17 Thread Pete Farmer
On 9/7/05, Mark Lundquist <[EMAIL PROTECTED]> wrote: > > On Sep 6, 2005, at 4:17 PM, Dustin N. Jenkins wrote: > > > That's exactly what I have actually. I'm still not clear as to what > > C3P0 handles, but if I'm indeed using the data source as laid out > > below, and injecting that into my Hibern

RE: Return xml from an Action to the pipeline?

2005-10-17 Thread Chris Marasti-Georg
Or easier still, have a pipeline for each source that simply does a generate and serialize as xml, and use an aggregation:                                                   The xml that gets to the transformer would look like:       ...     ...   where report-

Re: Best Practice - XML RPC results into the DB

2005-10-17 Thread Bertrand Delacretaz
Le 17 oct. 05, à 13:39, Messing, Elad a écrit : ... Will it be a good practice to use Cocoon services to parse this XML, build Hibernate objects, and save them to the DB ?.. If your app's environment is Cocoon it makes sense, there are several options to do this: -Cocoon Forms bindings.

Best Practice - XML RPC results into the DB

2005-10-17 Thread Messing, Elad
Hello All I have a "Best Practice" type of question. I am using Cocoon as a WAF for my portal site. The data comes from a DB, with Hibernate in the middle. JX pages are used to show this data. Now - we will soon inject some data from a 3rd party DB into our DB (this will ha

Re: [CForms/flow/ajax] Weird problem with ajax="true"

2005-10-17 Thread Thorsten Scherler
El vie, 14-10-2005 a las 19:05 +0200, Sylvain Wallez escribió: > Felix Röthenbacher wrote: > > > Hi Thorsten > > > > Thorsten Scherler wrote: > > > >> Hey all, > >> > >> lenya just added the dynamic repeater example to the default pub. The > >> problem with it is, that if we use ajax="true" and su

RE: 'Hello World' for Cocoon component builders?

2005-10-17 Thread Kai Mutz
Check this: http://excalibur.apache.org/developing/index.html You have to define a Component as "the combination of a work interface and the implementation of the interface": Interface: import org.apache.avalon.framework.component.Component; public interface MyComponent extends Component {