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
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
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 +-
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
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
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 :
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
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
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
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
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.
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
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
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
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
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
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
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
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
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,
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
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:
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.
=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
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
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
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
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
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);
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
:
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
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
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
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
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);
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
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
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 --
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 :
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
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é
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
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.)
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
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 »
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.
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
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
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
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
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
51 matches
Mail list logo