Re: question about control flow

2005-07-07 Thread Daniel McOrmond
Hi Jarry, To access sitemap parameters in JavaFlow, you could try something like this: import org.apache.avalon.framework.parameters.Parameters; import org.apache.cocoon.components.flow.java.Continuation; import org.apache.cocoon.components.flow.java.ContinuationContext; snip/

Re: Cocoon 2.1.6 vs Cocoon 2.1.7

2005-06-23 Thread Daniel McOrmond
Hi Guillaume, I would recommend using Cocoon 2.1.7. It is the latest stable version. In regards to JavaFlow, that all depends on your definition of 'stable'. :) Some folks are using it in production [1], but I believe it's still listed as 'unstable' [2]. HTH, -Daniel [1]

Re: Access Generator parameters without JX nore XSL ?

2005-06-17 Thread Daniel McOrmond
Hi Tibor, You could use the RequestGenerator. Any sitemap parameters you pass to it will show up in the h:configurationParameters element.. -Daniel On 6/17/05, oceatoon [EMAIL PROTECTED] wrote: Hi I feel oakward asking this, since it seems so obvious, but I don't beleive it is possible???

Re: Excel Spreadsheet Generator|Transformer

2005-06-15 Thread Daniel McOrmond
Hi Derek, I don't believe that David Kavanagh ever created a bugzilla patch following that thread. However, there is a new ExcelGenerator[1] that should be part of Cocoon 2.2. Looks like this generator outputs the speadsheet in Gnumeric XML format. I also have an ExcelToXmlTransformer that I

Re: hssfserializer gnumeric print information, zoom issue

2005-06-13 Thread Daniel McOrmond
Hi Asim, You might find more assistance on the Apache POI users list[1]. HTH, -Daniel [1] http://jakarta.apache.org/site/mail2.html#POI On 6/13/05, Asim Thakker [EMAIL PROTECTED] wrote: Hey, I am using cocoon 2.1 to get an xml file, transform it using xslt (using the

CForms 'select all' for checkboxes

2005-06-08 Thread Daniel McOrmond
Is there an existing solution for a 'select all' / 'deselect all' button for CForms booleanfield widgets (checkboxes)? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem using matchers

2005-05-20 Thread Daniel McOrmond
Hi Goku, You're very close! One problem seems to be that your match pattern is only going to work for URL's begining with 'html'. Instead, you might want to try something like this: map:match pattern=reports/html/* map:generate src=cocoon://sqlquery/{1}/ map:transform src=doc2html.xsl/

Re: Help, Java Flow drives me crazy

2005-03-30 Thread Daniel McOrmond
On Wed, 30 Mar 2005 09:04:54 -0500, Paul Friedman [EMAIL PROTECTED] wrote: I believe (but I may be wrong here) that the only supported language for flow is javascript. There is also a Java based implementation written by Alex Krut. This is what the example files indicate he is using.

Re: eval function does not work

2005-03-30 Thread Daniel McOrmond
Baskar, Do not put quotes around the variable name you provide as a parameter to the eval() function. For example, eval( defaultExpression ); NOT eval( 'defaultExpression' ); HTH, -Daniel On Wed, 30 Mar 2005 23:42:10 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Daniel,

Re: eval function does not work

2005-03-24 Thread Daniel McOrmond
Hi Baskar, The eval() function does work in Flowscript! :) Perhaps you could you post a snippet of the code that is not working for you. -Daniel On Thu, 24 Mar 2005 14:46:49 +0530, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, Can anyone suggest me why eval() function does not work

Re: eval function does not work

2005-03-24 Thread Daniel McOrmond
Hi Baskar, That seems odd. What version of Cocoon are you using? Try breaking things down to an easier level, and see if you can isolate where the problem is. It sounds like you might have too many quotes around your expression. So for example, try calling: eval( 'temp +

Re: issues with images matcher

2005-03-22 Thread Daniel McOrmond
always interpreted so i have to use in my images /cfm/x/images/myimage.gif where cfm is my sitemap prefix, and x doesn't exist... still not very clean :-\ Marc Daniel McOrmond a écrit : Marc, You might try adding a slash between your wildcard characters and the string, like

Re: issues with images matcher

2005-03-21 Thread Daniel McOrmond
Marc, You might try adding a slash between your wildcard characters and the string, like this: map:match pattern=**/images/** This is how I've seen it done, and it's always worked properly for me. -Daniel On Mon, 21 Mar 2005 15:22:01 +0700, Marc Salvetti [EMAIL PROTECTED] wrote: Hello, i'm

Re: cocoon caching

2005-03-07 Thread Daniel McOrmond
Hi Janvier, Could provide some more details about how you're accessing information in your database? Then perhaps someone might have some insight. -Daniel On Mon, 7 Mar 2005 18:24:15 +0100 (CET), Janvier Majirus [EMAIL PROTECTED] wrote: Hi all! I used cocoon2 for my web application. My app

Re: compiling cocoon on windows with jdk1.5

2005-03-07 Thread Daniel McOrmond
Hi Mike, I know there are some issues when compiling Cocoon with Java 1.5. You can search the archives to see how others have resolved them, or just use 1.4.2. Hope this helps. -Daniel On Mon, 7 Mar 2005 18:27:47 +0100, Michel Erard [EMAIL PROTECTED] wrote: Hello, I'was trying to compile

Re: Images in Cocoon 2.1.6

2005-03-07 Thread Daniel McOrmond
Is the issue that your generated HTML contains the wrong file name for the image? Or, are the file names correct, but the images won't load? If the second is the case, remember that the web browser makes seperate requests for the images. So, make sure you have a pipeline for serving up the

Re: cocoon caching

2005-03-07 Thread Daniel McOrmond
Ok. So are you using the XMLDBTransformer? Or the XMLDBGenerator? Send along one of your database accessing pipelines and everybody can take a look at it. -Daniel On Mon, 7 Mar 2005 18:35:38 +0100 (CET), Janvier Majirus [EMAIL PROTECTED] wrote: I'm accessing information in database via a link

Re: cocoon/javascript - noscript

2005-03-03 Thread Daniel McOrmond
Anthony, Have you considered placing your JavaScript in external files? I think this might simplify your life. ;) All you need is a simple pipeline to serve up the .js files, like this: map:pipeline map:match pattern=js/* map:read src=js/{1}/ /map:match /map:pipeline Then, in your HTML

Remembering original request parameters when using flow

2005-03-03 Thread Daniel McOrmond
Is it better to 'remember' original request parameters as variables in flowscript, or to pass them via hidden form fields through the pipeline? The goal is for the next pipeline to have access to them. Below are two examples. I've tried to be as succinct as possible. So, you'll just have to use

Re: SAXParser.parse alternative?

2005-03-03 Thread Daniel McOrmond
Grzegorz, Why not just use the TextGenerator? [1] If that doesn't suit your needs, at least take a look at the source. Maybe it'll help with your problem. Hope this helps, -Daniel [1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/TextGenerator.html

Re: Remembering original request parameters when using flow

2005-03-03 Thread Daniel McOrmond
On Thu, 03 Mar 2005 22:41:50 +, Upayavira [EMAIL PROTECTED] wrote: Now, I expect that the answer will be that I should use variables within flowscript. I've seen that the flow tutorial and examples do things this way. It is up to you. However, I think you'll find the flow route

Re: Remembering original request parameters when using flow

2005-03-03 Thread Daniel McOrmond
On Fri, 04 Mar 2005 00:11:29 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: Hehe, during Cocoon trainings, I tell people untwist your mind, things are simple again. Flowscript keeps the execution state between requests, so you really don't need some hidden inputs hacks if you go from screen to

Re: Alternative methods of accessing current WebContinuation?

2005-03-02 Thread Daniel McOrmond
Cool! Thanks Mark. That's exactly what I was looking for. -Daniel On Wed, 2 Mar 2005 08:30:46 -0800, Mark Lundquist [EMAIL PROTECTED] wrote: Hi Daniel, On Mar 1, 2005, at 2:13 PM, Daniel McOrmond wrote: I was thinking of something along the lines of an Input Module, perhaps even using

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Daniel McOrmond
Mark, I can help by answering question 2. There was indeed some 'bugage' related to redirecting that was fixed in the 2.1.6 release. http://issues.apache.org/bugzilla/show_bug.cgi?id=26854 -Daniel On Wed, 2 Mar 2005 08:22:58 -0800, Mark Lundquist [EMAIL PROTECTED] wrote: Question 2:...

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Daniel McOrmond
You're right in that there's no SAX events to serialize. However, I wonder if adding a serializer would quiet Cocoon's complaints of an incomplete pipeline? I believe that's what Lars was getting at. Of course, the real solution to your problem is to do all your redirecting from flowscript. ;)

Alternative methods of accessing current WebContinuation?

2005-03-01 Thread Daniel McOrmond
Are there any alternate ways to access the current WebContinuation besides using JXTemplateGenerator, JPath Logic Sheet, or VelocityGenerator? I was thinking of something along the lines of an Input Module, perhaps even using XModuleSource. Any thoughts? -Daniel

Re: Flowscriptproblem - Syntax Error

2005-02-23 Thread Daniel McOrmond
Hi Claus, I believe that happened to me once. The problem was not the function declaration, as the error said. Rather, it was being caused by a typo or stray character within the function itself. -Daniel On Wed, 23 Feb 2005 19:24:24 +0100, Claus Straube [EMAIL PROTECTED] wrote: I always get

Java Class Casting within Flow

2005-02-22 Thread Daniel McOrmond
Here's a simple example: importClass( Packages.com.company.GenericObject ); importClass( Packages.com.company.SpecificObject ); importClass( Packages.com.company.ObjectLoaderUtil ); function doSomethingUseful() { var loader = cocoon.createObject( ObjectLoaderUtil ); var myObject =

Re: Java Class Casting within Flow

2005-02-22 Thread Daniel McOrmond
Hmm. I would be interested to understand why you suggest that? In this case the SpecificObject has additional methods not contained in the GenericObject. When I try to call those methods, Flow complains ( as I expect ) that the method is not available. -Daniel On Tue, 22 Feb 2005 17:25:20

Re: Java Class Casting within Flow

2005-02-22 Thread Daniel McOrmond
11:34:31 -0500, Daniel McOrmond [EMAIL PROTECTED] wrote: Hmm. I would be interested to understand why you suggest that? In this case the SpecificObject has additional methods not contained in the GenericObject. When I try to call those methods, Flow complains ( as I expect ) that the method

Excel Spreadsheet Generator|Transformer

2004-02-11 Thread Daniel McOrmond
Is there are Generator|Transformer that produces xml from an excel document? Perhaps something utilizing Jakarta POI-HSSF? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Excel Spreadsheet Generator|Transformer

2004-02-11 Thread Daniel McOrmond
Is there are Generator|Transformer that produces xml from an excel document? Perhaps something utilizing Jakarta POI-HSSF? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]