RE: reloading a page in flowscript

2006-03-22 Thread vijayaraghavan.subramaniam
Title: Message Hi, try this... cocoon.request.getRequestURI() find out more ..org.apache.cocoon.environment.http.HttpRequest API. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 1:45 PMTo:

authenticator component?

2006-03-22 Thread Fernando.Matomira
Is there a sample of a Java authenticator component (I think a generator) somewhere? Something that can be put inside the matcher for the authentication uri of the authentication manager. Thanks

RE: Persistent caching with TWO Cocoon in two Tomcat on the SAME machine

2006-03-22 Thread Ard Schrijvers
Hello Robert, I asked around a little bit here, and there are others thinking it should be quite possible to use shared (open source) caches. Only thing that you have to build it yourself in cocoon because at the moment it is not in there yet. What really may interest you though is the

RE: reloading a page in flowscript

2006-03-22 Thread Ard Schrijvers
Think you're mixing normal client side browser _javascript_ here with cocoon functionality: Try location.href perhaps, but certainly don't look at cocoon for the problem. --HippoOosteinde 111017WT AmsterdamThe NetherlandsTel +31 (0)20

Bug in authentication-fw sample

2006-03-22 Thread Fernando.Matomira
If one logs in, then presses the back button and logs in again one gets the following error, instead of being redirected inside: org.apache.cocoon.ProcessingException: User is already authenticated using handler: demohandler map:mount - context://samples/blocks/sitemap.xmap - 66:68 How does

JXTemplates+Flow vs Generator+XSLT

2006-03-22 Thread Nacho Jimenez
Hi all, I'm implementing a website and was wondering which of the two ways (JXT+Flow vs Generator+XSLT) was better suited to my customer. My data is in a database, and I 'm used to a mix and match approach: I use JXT+Flow for web applications (low number of users but stronger requirements) and

RE: Bug in authentication-fw sample

2006-03-22 Thread Kai Mutz
You can avoid this by using the LoggedInAction, e.g. map:match pattern=do-login map:act type=auth-loggedIn map:parameter name=handler value=HandlerName/ map:redirect-to uri=loggedInPage/ /map:act map:act type=auth-login map:parameter name=handler

Appending URI prefix in cocoon.2.1.7

2006-03-22 Thread baskar.ganesh
Hi All, I am trying to add a static name other than the war name in the URI. It should be as follows:- http://server-name:port-number/webapp-name/customer-name And the above should be there always whenever the new request is been served. I am using cocoon2.1.7 and I use two

Re: authenticator component?

2006-03-22 Thread Fernando Mato Mira
I made a sample based on the RequestGenerator. There are some unused imports. /* * Copyright 1999-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of

Gantt graph using Fins ?

2006-03-22 Thread Marc Salvetti
Hi,i would like to know if Fins has the possibility to generate gantt charts from an xml input ?I noticed it's possible on the JFree website but i didn't see any mention of it in the fins doc.Btw, the fins page seems to have moved to http://new.cocoondev.org/main/117/29.html but the cocoon

roles in sitemap?

2006-03-22 Thread Fernando.Matomira
Theres no built-in support to act based on authentication roles in the sitemap?

Strange response.setHeader behaviour in custom reader (Cocoon 2.1.8)

2006-03-22 Thread Kai Mütz
Hi, we use a custom reader component similar to ResourceReader which makes use of HTTP Headers. In addition to the settings in ResourceReader I want to disable client caching by setting the Cache-Control header (like HTTPCacheAction does). Thus I have extended the seupHeaders() method to:

Re: Where are the JavaScript functions?

2006-03-22 Thread Nicolás Lichtmaier
In your sitemap.xmap, you need to include a matcher for the client-side javascript files. You should write something like this: map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match I already have that in the sitemap. But there's no

RE: Where are the JavaScript functions?

2006-03-22 Thread Jasha Joachimsthal
-Original Message- From: Nicolás Lichtmaier [mailto:[EMAIL PROTECTED] Sent: woensdag 22 maart 2006 14:46 To: users@cocoon.apache.org Subject: Re: Where are the JavaScript functions? In your sitemap.xmap, you need to include a matcher for the client-side javascript files.

Re: Appending URI prefix in cocoon.2.1.7

2006-03-22 Thread Jason Johnston
Hello Baskar, I'm sorry but I don't understand your question. In your examples what is {customer/name} supposed to represent? [EMAIL PROTECTED] wrote: Hi All, I am trying to add a static name other than the war name in the URI. It should be as follows:-

Re: JXTemplates+Flow vs Generator+XSLT

2006-03-22 Thread Jason Johnston
Nacho Jimenez wrote: Hi all, I'm implementing a website and was wondering which of the two ways (JXT+Flow vs Generator+XSLT) was better suited to my customer. My data is in a database, and I 'm used to a mix and match approach: I use JXT+Flow for web applications (low number of users

Re: Where are the JavaScript functions?

2006-03-22 Thread Jason Johnston
Nicolás Lichtmaier wrote: In your sitemap.xmap, you need to include a matcher for the client-side javascript files. You should write something like this: map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match I already have that in the

Re: Bug in authentication-fw sample

2006-03-22 Thread Brian Hawkins
I noticed this as well. I fixed it by doing the following: map:match pattern=login map:act type=auth-logout map:parameter name=handler value=PortalHandler/ /map:act map:act type=auth-login map:parameter name=handler

HttpServletRequest?

2006-03-22 Thread Fernando.Matomira
In a component, I need to call a third-party method which takes a HttpServletRequest as a parameter. In this component, I have access to a cocoon Request. How can I do to get to an HttpServletRequest? The method I want to call needs to look at the headers and source IP address. Thanks

Re: JXTemplates+Flow vs Generator+XSLT

2006-03-22 Thread ian . d . stewart
A third option, if you are only using Flow to initialize a data object then pass it to your JXTemplate, is the use of custom actions. This has the advantage of achieving the same results as Flow without the overhead of increased complexity (IMO) and the concurrency issue. Also note that

Re: HttpServletRequest?

2006-03-22 Thread Brian Hawkins
This brings up a good question. Why does cocoon feel the need to wrap every object? The cocoon Request interface is (as far as I can tell) identical to the HttpServletRequest interface. From the code the only difference is that is wraps other objects like the session. All this seems to do

Re: roles in sitemap?

2006-03-22 Thread Ralph Goers
[EMAIL PROTECTED] wrote: There’s no built-in support to act based on authentication roles in the sitemap? No, but it is very easy to add. First, you have to get the user's roles during authentication from whatever authentication and authorization component you are using and save them in the

Re: HttpServletRequest?

2006-03-22 Thread Brian Hawkins
In thinking about this more I think the best solution all around is to have the cocoon Request interface inherit from the HttpServletRequest interface. Then it could be passed around and used in any servlet. Brian Brian Hawkins wrote: This brings up a good question. Why does cocoon feel the

Re: HttpServletRequest?

2006-03-22 Thread Bruno Dumon
On Wed, 2006-03-22 at 16:43 +0100, [EMAIL PROTECTED] wrote: In a component, I need to call a third-party method which takes a HttpServletRequest as a parameter. In this component, I have access to a cocoon Request. How can I do to get to an HttpServletRequest? The method I want to call

Re: Gantt graph using Fins ?

2006-03-22 Thread Luca Morandini
Marc Salvetti wrote: i would like to know if Fins has the possibility to generate gantt charts from an xml input ? I noticed it's possible on the JFree website but i didn't see any mention of it in the fins doc. Not yet, only a subset of JFreeCHart capabilities are supported. Btw, the

Re: HttpServletRequest?

2006-03-22 Thread Bruno Dumon
Hi, If you search the archives of the dev list, you should find recent (dec-feb) discussions on this topic, look for threads with titles like Ditching the environment abstraction The environment abstraction, part II Let the environment interfaces extend the javax.servlet.http ones On Wed,

Large Navigation Menus?

2006-03-22 Thread Berin Loritsch
Does CForms have easy ways of using forms to navigate a complex structure? We have a set of over 400 locations in a hierarchy, and over 200 topics in a hierarchy that we need to let the user navigate. The current solution we have (using a third party Javascript library) introduces over 5

Re: Large Navigation Menus?

2006-03-22 Thread Brian Hawkins
Try collapsing divs and fill them using AJAX when the plus sign is clicked. Brian Berin Loritsch wrote: Does CForms have easy ways of using forms to navigate a complex structure? We have a set of over 400 locations in a hierarchy, and over 200 topics in a hierarchy that we need to let the

Re: Gantt graph using Fins ?

2006-03-22 Thread Derek Hohls
the whole of JFreeChart to be included in Fins. Whoo Hoo !!! Great news [EMAIL PROTECTED] 2006/03/22 06:55:33 PM Marc Salvetti wrote: i would like to know if Fins has the possibility to generate gantt charts from an xml input ? I noticed it's possible on the JFree website but i

Re: Large Navigation Menus?

2006-03-22 Thread Antonio Gallardo
Hi Berin, Berin Loritsch escribió: Does CForms have easy ways of using forms to navigate a complex structure? The tree widget might help [1]. Best Regards, Antonio Gallardo. [1] http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/do-fileExplorer.flow

Re: New Daisy/Cocoon portal powered website

2006-03-22 Thread Antonio Gallardo
Armin Ehrenfels escribió: Nowhere on your site powered by cocoon ;-) ? $ curl -I http://www.intergator.de/ HTTP/1.1 302 Moved Temporarily Date: Thu, 23 Mar 2006 06:30:15 GMT Server: Apache-Coyote/1.1 X-Cocoon-Version: 2.1.7 Location: http://www.intergator.de/portal Content-Type: text/plain

changing sitemap global variable

2006-03-22 Thread Myriam Delperier
Hi, I've got a sitemap variable defined like this : map:sitemap/map:pipelines/map:component-configurations/global-variables/send-from. I've there a way to change the value of this variable through cocoon java api? - To