Re: sending data from flowscript to another pipeline

2009-09-28 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Not sure to understand your use case but if you want to send data from flowscript to another pipeline, just try : cocoon.sendPage(cocoon://myPage,{data: myData}); and have a look at http://cocoon.apache.org/2.1/userdocs/flow/api.html André Le 28/09/2009 15:24, Robby Pelssers (par

Re: how-to query an xml repository efficiently

2009-09-08 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, eXist is, as you say, a very productive project with an active community. That's why we like it (and use it) ! I proposed Solr because it seems that the point is just to query the XML, not to store it. If the point is to xquery XML data and store it, eXist is _the_ solution, as far as

Re: how-to query an xml repository efficiently

2009-09-08 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
So for certain Filter-criteria I'll have to get all possible values so they can pick one and for others I don't need to know anything about the actual data. You can choose the data (XML properties) you want to index and the ones you don't want to. The actual product xml-files are +-

Re: how-to query an xml repository efficiently

2009-09-08 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Robby, One more thing about this subject. You can do all that stuff directly with Cocoon / Lucene with java code only, but Solr offers rich possibilities of index configuration by schema.xml and index can be handled with a HTTP client inside Cocoon through the Solr XML / HTTP API. Or in java

Re: how-to query an xml repository efficiently

2009-09-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, For high performance search I would recommend you Apache Solr. Regards, André Le 07/09/2009 15:54, Robby Pelssers (par Internet, dépôt users-return-97968-andre.davignon=developpement-durable.gouv...@cocoon.apache.org) a écrit : Hi all, I have following use case. The customer

Re: retrieving requested filename in XSL

2009-07-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, What about this in your XSL ? xsl:attribute name=href xsl:value-of select=concat('doc-',$filename,'.pdf') / /xsl:attribute André Le 22/07/2009 11:51, Jean-Bonneau (par Internet, dépôt users-return-97854-andre.davignon=developpement-durable.gouv...@cocoon.apache.org) a écrit :

Re: How to pass parameters to an xsp sheet (called in a map:aggregate element).

2009-07-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Try this : String period = (String)request.getParameter(period); André Le 22/07/2009 14:59, SGE0 (par Internet, dépôt users-return-97859-andre.davignon=developpement-durable.gouv...@cocoon.apache.org) a écrit : I thought this was simple but I can't seem to pass request parameters to an

Re: Form generation

2009-05-12 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Yes, it works. You can define forms dynamically. And even pass cocoon://make-form.jx as a sitemap parameter. André Le 12/05/2009 15:31, Andre Juffer (par Internet, dépôt users-return-97598-andre.davignon=developpement-durable.gouv...@cocoon.apache.org) a écrit : Hi, is the

Re: Getting started with C2.2 -- where's the exception information?

2009-02-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, For us, as a project depending on Cocoon, it is crucial that Cocoon doesn't cling to dead (as in language) concepts and frameworks as XSP and Avalon, however proven and stable they may be. To attract new community members, it's very important to keep looking beyond one's own nose and

Re: Getting started with C2.2 -- where's the exception information?

2009-01-30 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi all, I sometimes feel there is unfortunately no constructive debate about this topic (2.1 vs 2.2). And as you say, Bart, blaming people who remain unsatisfied with 2.2 seems to be the answer though it's a bit easy. For example, I have a lot of Cocoon apps with many XSP and Cocoon 2.2

Re: Cocoon 2.1.8 Forms + AJAX : Final call for help!

2009-01-16 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi Derek, I read your previous mails again and it seems you JS are not loaded, maybe, as it happened to me, head is never matched by xsl:template match=head mode=forms-field. According to me that's *the* problem : Get the needed JS or use the standard ones Verify with Firebug they're loaded.

Re: How to Cinclude nothing when a file doesn't exist or have alternative map:generate files

2008-11-14 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Have you tried the resource-exists selector ? map:select type=resource-exists André Le 14/11/2008 10:58, Smigge (par Internet, dépôt [EMAIL PROTECTED]) a écrit : I have a match pattern that makes some tests and also reports about the contents of a file, if the file happens to

Re: AJAX in CForms... not that simple?!

2008-10-15 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi Derek, I have been working with Cocoon + CForms for a while now, but now have to deal with some more complex processing requirements. I had thought this would be a simple matter, but alas not... Issue 1. I have heavily customized stylesheets that I use for form display. Going back to

Re: AJAX in CForms... not that simple?!

2008-10-15 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Thanks, but this does not seem to make any difference. Any chance you have a simple/test application, where the resources are explicitly broken out in the way I have done? Alternately, are there any hints you can give me on how to make an AJAX form that does not make of use the default form

Re: AW: AW: AJAX in CForms... not that simple?!

2008-10-15 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
I have tried this, and it seems the main error that I am getting is: cocoon is not defined script script=text/javascriptcocoon.forms.ajax = true;/script I suppose that if there no AJAX set, then nothing else will work. But how does this help me find out what is missing? It seems Dojo is not

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-12 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi Hussayn, Now i understand the previous mentioned thread to some extend. And i ask myself: has XSP been fully replaced by flow-script in cocoon-2.2 ? Further investigations seem necessary ... and i found this thread: http://markmail.org/message/q5rgdefktbqt4ypj The author mentions the

Re: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !

2008-07-29 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, I upgraded a cocoon app with continuations from 2.1.8 to 2.1.11 without this kind of problem. Regards. André Le 29/07/2008 13:29, Laurent Medioni (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Hello, Another one when migrating from 2.1.5 to 2.1.11... When a continuation is

Re: dynamic cForms definitions/templates

2008-07-21 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Thank you, I am actually working this through ;) And I have some questions, maybe cause I am new to cForms... Welcome Why is this dynamic creation of a form definition? Is there a pipeline behind form-parameter? What about the src-parameter, it is never used?? It's dynamic because

Re: dynamic cForms definitions/templates

2008-07-21 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
document = loadDocument(src); from your previous mail: // load document form.load(document); Atm I just know about calling form.load() with some parameter like form.load(bean) for example. That's it. How does 'document' look like (is it XML??) I am just not able to see what happens

Re: Multipage form using an AJAX modal box

2008-07-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Even though you're working with Cocoon 2.2, i think you could take a look at [1]. This doc might help you. Cheers. André Davignon [1] http://cocoon.apache.org/2.1/userdocs/ajax.html Le 04/07/2008 18:38, Benjamin Boksa (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Dear List,

Re: Problem to integrate a website in cocoon

2008-07-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Is your app in a webapp context ? Is your app declared in your servlet engine context ? Regards. André Le 07/07/2008 10:41, doog4064 (par Internet, dépôt [EMAIL PROTECTED]) a écrit : hi evrybody, I'm a beginner in cocoon, I've been spending days finding out how does apache cocoon

Re: Problem to integrate a website in cocoon

2008-07-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
With tomcat, you can declare your app in $TOMCAT_HOME/conf/server.xml or, preferably, in $TOMCAT_HOME/conf/Catalina/localhost/yourApp.xml André Le 07/07/2008 12:30, doog4064 (par Internet, dépôt [EMAIL PROTECTED]) a écrit : I've tried differents directory: first: webapps then:

Re: Problem to integrate a website in cocoon

2008-07-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Sometimes Tomcat doesn't take the context on the fly and needs to restart... Anyway, you *need* a sitemap.xmap in your root directory. André Le 07/07/2008 15:20, doog4064 (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Thank you for your answer but I think I miss something important.

Re: redirectTo not executed

2008-06-10 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
=act solved the problem. Many thanks to Johan Cwiklinski Cheers. André Davignon Le 29/05/2008 14:28, DAVIGNON Andre - CETE NP/DIODé/PANDOC (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Hi, Ok, i get it. The continuation must be called (and matched). That's what i did. Then it goes

Re: Use cocoon properties in flow

2008-06-10 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, If you can access it in a sitemap, you could try this to access it in the flow : In the sitemap : map:call function=myFonction map:parameter name=someName value=${my-variable} /map:call Then in the flow : var myVariable = cocoon.parameters.someName; Regards. André Le

Re: Sitemap point to extern directory

2008-06-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi You can use : map:pipelines map:component-configurations !-- global-variables is used like a configuration file -- global-variables distantDirectory/home/foo/distantDirectory /global-variables

Re: redirectTo not executed

2008-05-30 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Then it goes out from showForm (or sendPageAndWait) but whatever i write after form.showForm(cocoon.parameters.show) (it cand be sendPage, sendRedirectTo, or anything) i don't know why this URI is called : myApp/[object HTMLInputElement] Could the reason be that my show parameter form

Re: redirectTo not executed

2008-05-30 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Then it goes out from showForm (or sendPageAndWait) but whatever i write after form.showForm(cocoon.parameters.show) (it cand be sendPage, sendRedirectTo, or anything) i don't know why this URI is called : myApp/[object HTMLInputElement] Could the reason be that my show parameter form is

Re: redirectTo not executed

2008-05-30 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
function myFlow() { var form = new Form(cocoon.parameters.form); form.createBinding(cocoon.parameters.binding); form.showForm(cocoon.parameters.show); print(ok, I'm out); } Oups, i meant : function myFlow() { var form = new Form(cocoon.parameters.form);

Re: redirectTo not executed

2008-05-29 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Thanks for the answer. showForm() hibernates the flow execution, waiting for a continuation. As long as you make a request in your browser (e.g. submit the form) and the server doesn't continue the flow, you won't reach the redirect command. So what kind of action has to be done so that

Re: redirectTo not executed

2008-05-29 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
: myApp/[object HTMLInputElement] Does anyone know what can cause this ? André Davignon Le 27/05/2008 21:46, Dev at weitling (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Hi André, DAVIGNON Andre - CETE NP/DIODé/PANDOC wrote: In 2.1.10, i'm working on a form with this flowscript : var

Re: redirectTo not executed

2008-05-29 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Do you have some more code (i.e. the template file) ? Here is a part of the template (the ft:form déclaration). The whole is template is genrerated by a cocoon pipeline. Cheers. André Davignon ft:form-template xmlns:ft=http://apache.org/cocoon/forms/1.0#template; method=POST ajax=true

redirectTo not executed

2008-05-27 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, In 2.1.10, i'm working on a form with this flowscript : var form = new Form(cocoon.parameters.form); form.createBinding(cocoon.parameters.binding); ... form.load(document); form.showForm(cocoon.parameters.show); cocoon.redirectTo(cocoon.parameters.redirect); cocoon.sendPage is never

Re: Ajax form global validation

2008-05-23 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, I don't completely understand the details but from what I've read here this type of form validation is not possible with ajax enabled. http://markmail.org/message/2loa7qecgc6d33yd But it seems to be the type of validation used in cocoon/samples/blocks/forms/do-dynaRepeater.flow (see

Ajax form global validation

2008-05-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, I have an Ajax form (ft:form-template method=POST ajax=true action=#{$cocoon/continuation/id} with following flowscript : var form = new Form(cocoon.parameters.form); form.createBinding(cocoon.parameters.binding); ... form.load(document); form.showForm(cocoon.parameters.show);

Re: Ajax form global validation

2008-05-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
The form seems not to go out from the continuation of form.showForm(cocoon.parameters.show) and sendPage is not executed. To be more precise, the form validation does post data, the POST is matched by a pipeline but i get this error : The requested resource

RE: Cocoon et Solr

2007-12-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, http://www.sortir.ch/ est basé sur Cocoon et utilise Solr pour gérer l'index des événements culturels. Merci pour cette information. Comme l'interface Solr est basée entièrement sur HTTP/XML, l'intégration a été relativement facile. Avez-vous utilisé SolrForrest

RE: Cocoon et Solr

2007-12-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Non, pour les requêtes sur Solr nous utilisons le WebServiceProxyGenerator, légèrement modifié pour éviter la création de sessions HTTP. Bien vu, merci. André Davignon - Liste francophone Apache Cocoon --

RE: Cocoon et Solr

2007-12-03 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Non, pour les requêtes sur Solr nous utilisons le WebServiceProxyGenerator, légèrement modifié pour éviter la création de sessions HTTP. J'ai bien vu la javadoc de cette classe mais je ne vois pas les sources :

Problème de création de formulaire dans un flowscript

2007-10-17 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, Dans une sitemap j'ai ça: ... map:match pattern=*/*.xhtml map:when test=editer map:call function=notixForm !-- URL qui génère la définition du formulaire -- map:parameter name=form

Encodage et formulaire avec Upload

2007-10-16 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, Dans une appli en UTF-8,jJ'ai un formulaire avec un widget répétable de type upload. Lorsque je sélectionne un fichier les caractères accentués sont altérés, par exmple le é devient ©. Cela ne se produit pas avec les autres champs de saisie du formulaire. Dans web.xml, j'ai essayé

RE: Question débutant

2007-08-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
En gros, j'ai un fichier xml que je transforme en objets (javabean) afin de les insérer en base. Mais avant de les insérer en base je dois appliquer quelques actions dessus. La question est donc: comment récupérer mes objets après transformation du fichier xml, puis, comment donner

RE: protection documents pdf statiques

2007-06-08 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, map:match pattern=docs/*/* map:act type=auth-protect map:parameter name=handler value=user/ map:read mime-type=application/pdf src=context:/data/{1}/{2}/ /map:act /map:match J'ai une erreur (Streaming of an internal pipeline is not possible with a reader.)

RE: Widgets repater et upload

2007-04-25 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, Ce n'est pas possible pour des raisons de sécurité : si une application peut donner des valeurs initiales à des champs d'upload, alors il est très facile de construire une page web malveillante qui récupère ce qu'elle veut sur le disque dur de l'utilisateur ! Effectivement, mieux

RE: Redirection

2007-03-27 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, En effet, une XSP est ni plus ni moins qu'un composant Cocoon (de type Generator) qui est généré en une classe Java à partir du fichier XSP. Personnellement je préfère utiliser l'outillage Eclipse et créer directement une classe Java plutôt que d'éditer « à la main »

Redirection

2007-03-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, J'ai un appli cocoon (appliA) qui doit se connecter à une appli PHP (appliB) en passant des paramètres. Et je voudrais donc matcher l'URL http://monServeur/appliA/appliB, et faire une redirection avec les paramètres nécessaires, sans que cela apparaisse dans l'URL, comme un POST.

RE: Redirection

2007-03-22 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Quelque chose de ce genre devrait faire l'affaire: map:match pattern=appliA/appliB/** map:read src=http://localhost/appliB/{1}?{request:queryString}/ /map:match Merci, hélas non, car le read lit la source mais ne redirige pas et de plus les paramètres sont visbles dans l'URL appelée

RE: Variables globales à une application

2007-03-20 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, OK pour les variables globales définies dans la site map à partir des inputs modules, mais comment les utiliser dans des stylesheets xsl ou bien des flowscript ? En les passant en paramètre : map:call mafonction=fonction map:parameter name=exploit

RE: Datasource cocoon.xconf pour une BD PostGres

2007-02-27 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Petite question subsidiaire pour partir dans la bonne direction : j'avais repéré basiquement le SQL tranformer, mais il semble y avoir pleins de possibilités avec Cocoon. Existe-t-il un comparatif de mise en oeuvre des différentes technos (xps vs flowscripts vs ???) Voici des

récupérer un flux XML

2007-02-13 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, Débutant sur Cocoon, ceci explique cela.. Je souhaite récupérer en entrée d'un pipeline, un flux XML accessible par une URL (qui pointe vers un autre serveur) : http://monServeur/flux.xml puis traiter ce flux. Comment pourrais-je m'y prendre ? Quel Generator dois-je utiliser ? C'est

RE: récupérer un flux XML

2007-02-13 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Le FileGenerator fait cela, si le xml est bien formé bien sûr. Comme c'est le générateur par défaut: map:generate src=http://monServeur/flux.xml/ devrait suffire. En effet ! Merci. André Davignon - Liste francophone