Re: flowscript, cocoon.response.sendRedirect() ?
* Frédéric Glorieux: J'ai eu beaucoup de problèmes pour sortir d'un flow après qu'un formulaire soit valide Il faut utiliser FOM_Cocoon.suicide() dans cette version, qui est devenu cocoon.exit() dans Cocoon 2.1.8. -- Jean-Baptiste Quenot http://caraldi.com/jbq/ - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
recupération de la valeur d'un parametre?
Bonjour, j'ai un transformeur xsl qui reçoit un paramétre. La valeur de ce paramétre est modifiée dans le xsl. Je veux recupérer cette valeur juste apres la sortie du transformeur dans une fonction de mon flowscript.Si quelqu'un a une idée? Cordialement, _ Conversations vidéo gratuites avec MSN Messenger ! http://www.imagine-msn.com/messenger/default2.aspx?locale=fr-fr - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: flowscript, cocoon.response.sendRedirect() ?
J'ai eu beaucoup de problèmes pour sortir d'un flow après qu'un formulaire soit valide Il faut utiliser FOM_Cocoon.suicide() dans cette version, :o) pas mal le nom Si cela devait s'utiliser comme cela dans un flowscript cocoon.suicide(); je ne pense pas que cela marche TypeError: suicide is not a function. (**.js; line 147) Est-ce que cela doit se trouver ici ? http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java qui est devenu cocoon.exit() dans Cocoon 2.1.8. -- Frédéric Glorieux (AJLSM, http://ajlsm.com) - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: recupération de la valeur d'un parametre?
Jacob Bizzoire wrote: Bonjour, j'ai un transformeur xsl qui reçoit un paramétre. La valeur de ce paramétre est modifiée dans le xsl. Modifiée dans la XSL? Les paramètres et variables d'une XSL sont immutables! Je veux recupérer cette valeur juste apres la sortie du transformeur dans une fonction de mon flowscript.Si quelqu'un a une idée? Si je comprends bien, tu veux utiliser le résultat d'un pipeline dans le flowscript? var util = cocoon.createObject(org.apache.cocoon.components.flow.util.PipelineUtil); var doc = util.processToDOM(url-de-pipeline); Tu peux ensuite piocher les infos qui t'intéressent dans le document doc. Sylvain -- Sylvain WallezAnyware Technologies http://bluxte.net http://www.anyware-tech.com Apache Software Foundation Member Research Technology Director - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: flowscript, cocoon.response.sendRedirect() ?
Frédéric Glorieux wrote: J'ai eu beaucoup de problèmes pour sortir d'un flow après qu'un formulaire soit valide Il faut utiliser FOM_Cocoon.suicide() dans cette version, :o) pas mal le nom Si cela devait s'utiliser comme cela dans un flowscript cocoon.suicide(); je ne pense pas que cela marche TypeError: suicide is not a function. (**.js; line 147) Est-ce que cela doit se trouver ici ? http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java Non, c'est là : http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/fom_system.js?rev=280628view=log Sylvain -- Sylvain WallezAnyware Technologies http://bluxte.net http://www.anyware-tech.com Apache Software Foundation Member Research Technology Director - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: flowscript, cocoon.response.sendRedirect() ?
cocoon.suicide() ne fonctionne pas effectivement, mais FOM_Cocoon.suicide() si ! En effet, cela fait quelque chose org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline. J'ai trafiqué avec mon sitemap pour arriver tout de même sur quelque chose, mais pas mieux. -- Frédéric Glorieux (AJLSM, http://ajlsm.com) - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: compiler code java
Le 7 févr. 06, à 17:09, [EMAIL PROTECTED] a écrit : ...Et, en compilant via: javac FormFlow.java =j'ai eu 34 erreurs... Oui, c'est *un peu* plus compliqué que cela. Je pense que bricks-cms pourrait t'aider, dans le sens où tout le système de build est en place, il suffit d'écrire ton code au bon endroit pour le rendre disponible dans Cocoon. Si tu veux essayer: http://wiki.apache.org/cocoon/BricksCms Mais attention, sans connaissances java tu risques de te heurter à un mur...il serait peut-être plus sage de te limiter au flowscript, ou d'apprendre java en-dehors de cocoon, ça sera *beaucoup* plus facile. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: compiler code java
Bertrand Delacretaz a écrit : Mais attention, sans connaissances java tu risques de te heurter à un mur...il serait peut-être plus sage de te limiter au flowscript, ou d'apprendre java en-dehors de cocoon, ça sera *beaucoup* plus facile. A mon sens, le flowscript est encore pire, car il ne dispose pas d'outil digne de ce nom qui detecte les erreurs, propose une complétion, débugge le code... (Eclipse pour java) -- Philippe GASSMANN Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
RE: compiler code java
C'est justement ce que j'étais en train de faire (flowscript) Mais, ça ne marche pas... En fait, j'ai un formulaire multipage dans lequel se trouve un repeater (à la 3e page) Ce que je voudrais faire c'est initialiser la première ligne de ce repeater. Voila un extrait de mon fichier xml de définition et un extrait de mon flowscript. multipage_model.xml: [...] - fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:xi=http://www.w3.org/2001/XInclude; - fd:widgets + fd:group id=page1 [...] + fd:group id=page2 state=invisible [...] + fd:group id=page3 state=invisible - fd:repeater id=all_locus - fd:widgets + fd:field id=locus + fd:field id=annotation + fd:field id=name + fd:field id=results required=true + fd:booleanfield id=select [...] forms_flow.js: [...] var repeater = form.getChild(page3/all_locus); repeater.addRow(); var field = repeater.getWidget(0, page3/locus); field.setValue(6p); form.showForm(multipage-display-pipeline.jx); [...] Merci encore! -Message d'origine- De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, February 07, 2006 17:38 À : users-fr@cocoon.apache.org Objet : Re: compiler code java Le 7 févr. 06, à 17:09, [EMAIL PROTECTED] a écrit : ...Et, en compilant via: javac FormFlow.java =j'ai eu 34 erreurs... Oui, c'est *un peu* plus compliqué que cela. Je pense que bricks-cms pourrait t'aider, dans le sens où tout le système de build est en place, il suffit d'écrire ton code au bon endroit pour le rendre disponible dans Cocoon. Si tu veux essayer: http://wiki.apache.org/cocoon/BricksCms Mais attention, sans connaissances java tu risques de te heurter à un mur...il serait peut-être plus sage de te limiter au flowscript, ou d'apprendre java en-dehors de cocoon, ça sera *beaucoup* plus facile. -Bertrand - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: compiler code java
[EMAIL PROTECTED] a écrit : C'est justement ce que j'étais en train de faire (flowscript) Mais, ça ne marche pas... En fait, j'ai un formulaire multipage dans lequel se trouve un repeater (à la 3e page) Ce que je voudrais faire c'est initialiser la première ligne de ce repeater. Voila un extrait de mon fichier xml de définition et un extrait de mon flowscript. multipage_model.xml: [...] - fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:xi=http://www.w3.org/2001/XInclude; - fd:widgets + fd:group id=page1 [...] + fd:group id=page2 state=invisible [...] + fd:group id=page3 state=invisible - fd:repeater id=all_locus - fd:widgets + fd:field id=locus + fd:field id=annotation + fd:field id=name + fd:field id=results required=true + fd:booleanfield id=select [...] forms_flow.js: [...] var repeater = form.getChild(page3/all_locus); repeater.addRow(); Ce qui suit n'est pas correct : var field = repeater.getWidget(0, page3/locus); je pense que repeater.getChildt(locus) est plus adapté, car tu ne dois pas repréciser page3 (tu est dans le context du repeater). field.setValue(6p); form.showForm(multipage-display-pipeline.jx); [...] Philippe. - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Accès à un bean via le RequestInputModule
Hello Dans une Action, je range un bean dans un attribut de requête : req.setAttribute(bean,mybean). Je cherche ensuite à accéder à ses propriétés depuis la sitemap via l'inputmodule Request, mais ça ne marche pas, les propriétés semblent toujours vides (alors qu'elles existent, et sont remplies). Ce que j'ai essayé : - {request-attr:bean} - renvoie bien le nom de la classe de mon bean mybean. - {request-attr:bean/id} - ne renvoie rien, alors que sa propriété id existe bien. Est-il possible d'utiliser des expressions XPath depuis cet inputmodule ? :) merci laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
RE: compiler code java
Malheureusement, c'est ce j'avais essayé la première et ça ne marche pas mieux...toujours aucune erreur de générée, mais repeater toujours vide... Je dois faire une erreur ailleurs... Merci. -Message d'origine- De : Philippe Gassmann [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, February 07, 2006 18:00 À : users-fr@cocoon.apache.org Objet : Re: compiler code java [EMAIL PROTECTED] a écrit : C'est justement ce que j'étais en train de faire (flowscript) Mais, ça ne marche pas... En fait, j'ai un formulaire multipage dans lequel se trouve un repeater (à la 3e page) Ce que je voudrais faire c'est initialiser la première ligne de ce repeater. Voila un extrait de mon fichier xml de définition et un extrait de mon flowscript. multipage_model.xml: [...] - fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:xi=http://www.w3.org/2001/XInclude; - fd:widgets + fd:group id=page1 [...] + fd:group id=page2 state=invisible [...] + fd:group id=page3 state=invisible - fd:repeater id=all_locus - fd:widgets + fd:field id=locus + fd:field id=annotation + fd:field id=name + fd:field id=results required=true + fd:booleanfield id=select [...] forms_flow.js: [...] var repeater = form.getChild(page3/all_locus); repeater.addRow(); Ce qui suit n'est pas correct : var field = repeater.getWidget(0, page3/locus); je pense que repeater.getChildt(locus) est plus adapté, car tu ne dois pas repréciser page3 (tu est dans le context du repeater). field.setValue(6p); form.showForm(multipage-display-pipeline.jx); [...] Philippe. - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED] - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
RE: compiler code java
Je récapitule: Voilà ce que j'ai ecrit: var repeater = form.getChild(page3/all_locus); repeater.addRow(); var row = repeater.getRow(0); var field = row.getChild(locus); field.setValue(6p); form.showForm(multipage-display-pipeline.jx); Mais toujours pas OK... :-( -Message d'origine- De : Philippe Gassmann [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, February 07, 2006 18:06 À : users-fr@cocoon.apache.org Objet : Re: compiler code java Philippe Gassmann a écrit : Philippe Gassmann a écrit : [EMAIL PROTECTED] a écrit : C'est justement ce que j'étais en train de faire (flowscript) Mais, ça ne marche pas... En fait, j'ai un formulaire multipage dans lequel se trouve un repeater (à la 3e page) Ce que je voudrais faire c'est initialiser la première ligne de ce repeater. Voila un extrait de mon fichier xml de définition et un extrait de mon flowscript. multipage_model.xml: [...] - fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:xi=http://www.w3.org/2001/XInclude; - fd:widgets + fd:group id=page1 [...] + fd:group id=page2 state=invisible [...] + fd:group id=page3 state=invisible - fd:repeater id=all_locus - fd:widgets + fd:field id=locus + fd:field id=annotation + fd:field id=name + fd:field id=results required=true + fd:booleanfield id=select [...] forms_flow.js: [...] var repeater = form.getChild(page3/all_locus); repeater.addRow(); Ce qui suit n'est pas correct : var field = repeater.getWidget(0, page3/locus); je pense que repeater.getChildt(locus) est plus adapté, car tu ne dois pas repréciser page3 (tu est dans le context du repeater). Oups ! je voulais bien entendu écrire : repeater.getChild(locus) Re oups, ce que je raconte est totalement faux !! j'ai oublié de récuprer la ligne var row = repeater.getRow(0); var field = row.getChild(locus) field.setValue(6p); form.showForm(multipage-display-pipeline.jx); [...] Philippe. - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED] -- Philippe GASSMANN Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED] - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: compiler code java
Il y a un message d'erreur ? [EMAIL PROTECTED] a écrit : Je récapitule: Voilà ce que j'ai ecrit: var repeater = form.getChild(page3/all_locus); repeater.addRow(); var row = repeater.getRow(0); var field = row.getChild(locus); field.setValue(6p); form.showForm(multipage-display-pipeline.jx); Mais toujours pas OK... :-( -Message d'origine- De : Philippe Gassmann [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, February 07, 2006 18:06 À : users-fr@cocoon.apache.org Objet : Re: compiler code java Philippe Gassmann a écrit : Philippe Gassmann a écrit : [EMAIL PROTECTED] a écrit : C'est justement ce que j'étais en train de faire (flowscript) Mais, ça ne marche pas... En fait, j'ai un formulaire multipage dans lequel se trouve un repeater (à la 3e page) Ce que je voudrais faire c'est initialiser la première ligne de ce repeater. Voila un extrait de mon fichier xml de définition et un extrait de mon flowscript. multipage_model.xml: [...] - fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:xi=http://www.w3.org/2001/XInclude; - fd:widgets + fd:group id=page1 [...] + fd:group id=page2 state=invisible [...] + fd:group id=page3 state=invisible - fd:repeater id=all_locus - fd:widgets + fd:field id=locus + fd:field id=annotation + fd:field id=name + fd:field id=results required=true + fd:booleanfield id=select [...] forms_flow.js: [...] var repeater = form.getChild(page3/all_locus); repeater.addRow(); Ce qui suit n'est pas correct : var field = repeater.getWidget(0, page3/locus); je pense que repeater.getChildt(locus) est plus adapté, car tu ne dois pas repréciser page3 (tu est dans le context du repeater). Oups ! je voulais bien entendu écrire : repeater.getChild(locus) Re oups, ce que je raconte est totalement faux !! j'ai oublié de récuprer la ligne var row = repeater.getRow(0); var field = row.getChild(locus) field.setValue(6p); form.showForm(multipage-display-pipeline.jx); [...] Philippe. - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED] -- Philippe GASSMANN Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: Accès à un bean via le Reques tInputModule
Laurent Perez wrote: Hello Dans une Action, je range un bean dans un attribut de requête : req.setAttribute(bean,mybean). Je cherche ensuite à accéder à ses propriétés depuis la sitemap via l'inputmodule Request, mais ça ne marche pas, les propriétés semblent toujours vides (alors qu'elles existent, et sont remplies). Ce que j'ai essayé : - {request-attr:bean} - renvoie bien le nom de la classe de mon bean mybean. - {request-attr:bean/id} - ne renvoie rien, alors que sa propriété id existe bien. Est-il possible d'utiliser des expressions XPath depuis cet inputmodule ? :) Eh non. Aussi bête que ça puisse paraître, ce module ne supporte pas les expressions XPath!! Un p'tit patch pour corriger ça serait le bienvenu :-) Sylvain -- Sylvain WallezAnyware Technologies http://bluxte.net http://www.anyware-tech.com Apache Software Foundation Member Research Technology Director - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Unifier getChild() et lookupWidget() (était Re: compiler code java)
[EMAIL PROTECTED] wrote: Je récapitule: Voilà ce que j'ai ecrit: var repeater = form.getChild(page3/all_locus); Il faut utiliser form.lookupWidget(page3/all_locus). getChild cherche uniquement dans les fils directs, alors que lookupWidget interprète le chemin. Je sais, c'est subtil et pas évident. Que pensez-vous, chers z'utilisateurs, que dans le Cocoon 2.1.9 à venir, on unifie les fonctions getChild() et lookupWidget() ? Sylvain -- Sylvain WallezAnyware Technologies http://bluxte.net http://www.anyware-tech.com Apache Software Foundation Member Research Technology Director - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Cocoon et Hibernate
Bonjour à tous. Possédant de (maigres) connaissances en Java, je me demande s'il est bien raisonnable de me lancer dans le mélange hibernate/cocoon. Quelques tutoriels sur le net, je me demandais juste si quelqu'un avait quelque chose de plus récent ou de mieux que hibernate pour cocoon. Le but étant d'utiliser le binding sur une base existante. Merci. -- Aurélien - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: Cocoon et Hibernate
Le 7 févr. 06, à 20:11, Aurélien DEHAY a écrit : ...Possédant de (maigres) connaissances en Java, je me demande s'il est bien raisonnable de me lancer dans le mélange hibernate/cocoon... Sans maîtriser Java, c'est risqué...peut-être que ce qu'a fait Sylvain sur la base de JDBI serait intéressant? Par exemple http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/sql/ -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: compiler code java
Le 7 févr. 06, à 17:49, Philippe Gassmann a écrit : Bertrand Delacretaz a écrit : Mais attention, sans connaissances java tu risques de te heurter à un mur...il serait peut-être plus sage de te limiter au flowscript, ou d'apprendre java en-dehors de cocoon, ça sera *beaucoup* plus facile. A mon sens, le flowscript est encore pire, car il ne dispose pas d'outil digne de ce nom qui detecte les erreurs, propose une complétion, débugge le code... (Eclipse pour java) Bien sûr, on ne va pas faire en flowscript tout ce qu'on fait en java, ce n'était pas mon idée. Pour mémoire il existe tout de même un debugger: http://wiki.apache.org/cocoon/DebugFlowScripts -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: Cocoon et Hibernate
Bertrand Delacretaz a écrit : Le 7 févr. 06, à 20:11, Aurélien DEHAY a écrit : ...Possédant de (maigres) connaissances en Java, je me demande s'il est bien raisonnable de me lancer dans le mélange hibernate/cocoon... Sans maîtriser Java, c'est risqué...peut-être que ce qu'a fait Sylvain sur la base de JDBI serait intéressant? Par exemple http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/sql/ Adieu le binding framework. Limite, autant rester à ce qu'on avait fait sur l'appli alors, vu que pour l'instant ça fonctionne. Ou passer à une base xml, qui permet d'utiliser le binding plus facilement. Pas de solution magique donc? -Bertrand -- Aurélien. - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: Cocoon et Hibernate
Bertrand Delacretaz a écrit : Le 7 févr. 06, à 20:39, Bertrand Delacretaz a écrit : Le 7 févr. 06, à 20:11, Aurélien DEHAY a écrit : ...Possédant de (maigres) connaissances en Java, je me demande s'il est bien raisonnable de me lancer dans le mélange hibernate/cocoon... Sans maîtriser Java, c'est risqué...peut-être que ce qu'a fait Sylvain sur la base de JDBI serait intéressant?... Je me self-réponds pour préciser tout de même que bricks-cms (tiens ça fait longtemps que j'en avais pas parlé ;-) est un exemple simple de mapping sur une base de données, la partie java n'est pas si compliquée que ça et tout le système de build est en place. Bricks utilise OJB et pas Hibernate, mais les concepts sont très similaires - et expérience faite, OJB fonctionne très bien, même s'il est moins connu. Ce qui m'intéressait pas mal dans hibernate, c'était la possibilité via les tools de faire du reverse engeneering. Parceque bon, le reverse sur un base pourtant pas compliqué d'une quinzaine de table avec des relations dans tous les sens, ojb j'ai vite regardé, ça m'a fait un peu peur. -Bertrand - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: Cocoon et Hibernate
Juste mon petit grin de sel pour encouragement. Hum... je me suis mis a java via cocoon, c'est a dire en commencant par faire du XSP, des actions, puis en changant des petites choses sur les sources de cocoon, puis j'ai implemente Hibernate. Le plugin pour Eclipse est bien fait et m'a genere la plupart de mes bean et dao. Donc ce n'est pas infaisable, le tout est d'y aller progressivement ! Phil Sylvain Wallez wrote: Bertrand Delacretaz wrote: Le 7 févr. 06, à 20:39, Bertrand Delacretaz a écrit : Le 7 févr. 06, à 20:11, Aurélien DEHAY a écrit : ...Possédant de (maigres) connaissances en Java, je me demande s'il est bien raisonnable de me lancer dans le mélange hibernate/cocoon... Sans maîtriser Java, c'est risqué...peut-être que ce qu'a fait Sylvain sur la base de JDBI serait intéressant?... Je me self-réponds pour préciser tout de même que bricks-cms (tiens ça fait longtemps que j'en avais pas parlé ;-) ... Merci quand même pour le (petit) coup de pouce pour JDBI :-P Cet exemple permet la connexion forms - sql directe pour les cas simples, et sans binding ni classe Java. Cool, non? L'idée de base est de considérer que si la form et la table SQL on des champs/colonnes de même nom et de même type, on peut basculer de l'un vers l'autre directement, sans intermédiaire. Comme disent les fans de Ruby on Rails, convention over configuration. Regardez le flowscript de cet exemple, ça parle tout seul. Enfin j'espère ! Sylvain - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re-Compilation XSP
Bonsoir, Sans avoir change ma conf (consciemment en tous cas), cocoon ne prend pas en compte mes changements dans mes pages XSP, traduction ils ne sont pas recompiles a chaud, pour y remedier je dois supprimer les class correspondantes dans le WEB-INF/work et redemarrer mon servlet container (tomcat). J'ai deja rencontre ce probleme sans jamais en trouver la cause...(Je suis en check-reload=yes) Avez-vous une idee? Phil - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
Re: XSP: How to create elements dynamically
Hi, I struggled with this one myself, I ended up having to use fixed element names, but being able to assign attributes dynamically using the following code. xsp:element name=table xsp:attribute name=nameesql:get-string column=relname// xsp:attribute xsp:element name=column xsp:attribute name=indexesql:get-string column=attnum// xsp:attribute ... /xsp:element /xsp:attribute /xsp:element My original aim was to query PostgreSQL to create an XML document describing the database schema of the database which would describe the relationships of the database for me to allow me to create forms more dynamically. The structure I ended up using which is created from the above is.. table name=author column name=index1/column ... /table This gets the information out and then of course if you needed it as author index1/index /author You could throw in a custom XSL transformation in the pipeline to achieve it. Don't know if this helps, David. On 6 Feb 2006, at 19:39, Ajit Bhave wrote: Hi, I am trying to creating elements dynamically in an XSP page. The XSP documentation has an example using xspParentNode. xspCurrentNode variables. But, when I use them in XSP page, I get unresolved symbols error. What is the recommended method for doing this in Cocoon 2.1? My environment is Cocoon 2.1 + JDK 1.5 + Redhat 7.2. Any help will be appreciated. Regards, Ajit. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scaling Cocoon to handle a heavy load
Hi, Two weeks ago I asked for help regarding Cocoon performance. I was pointed in the direction of the JVM as I was running 1.4.2, I upgraded this to 1.5.0_05 which basically has better garbage collection management and it proved to be a great improvement of stability and performance. Even under duress my test server gracefully slowed down, not crashed and burned like before! This change has been made live and all is well site is performing beautifully and much quicker. Many Thanks, for the advice, greatly appreciated!! David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Fingerprint system writing by Cocoon
Not sure I like the maximised pop-up screen that happens when you do a search (using the icon). [EMAIL PROTECTED] 2006/02/07 12:26 PM Hi!This is a Fingerprint portal Auth and Check in/out system writing by Cocoon 2.1.8http://www.erp.tw/cocoon/shb/portaluser:demo pass:demo can login without fingerprint.It tested ok with Digital Persona U.Are.U 4000 fingerprint Device.now part of words are chinese, and i18n for english(en), chinese(zh_TW/zh_CN) are ok.Full i18n version (with english, chinese, japanese also french) will release soon.please give us advice.Best Regardsjohnson -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[SOLVED] Re: Flowscript error (ComponentSelector) for server app [PLEASE HELP]
Thanks to Jean-Baptiste on the dev list... OK, now I realise what I missed (bangs head on monitor!) The datasource is called as follows from flow:function getIndDB() { if (indDatabase == null) { this.indDatabase = new IndDB("inddb"); //get from the cocoon.xconf file } return indDatabase;}and in the cocoon.xconf file I have: jdbc name="inddb_user" !-- should match name in flow -- pool-controller min="5" max="50"/ auto-committrue/auto-commit dburljdbc:mysql://localhost:3306/indicators/dburl useruser/user passwordpassword/password /jdbc The problem was that on my development machineI *also* had an entry: jdbc name="inddb" pool-controller min="5" max="50"/ auto-committrue/auto-commit dburljdbc:mysql://localhost:3306/indicators/dburl useruser/user passwordpassword/password /jdbc So the development machine worked (two datasources)but the target machine did not (wrong datasource). [EMAIL PROTECTED] 2006/01/30 01:36 PM So far no helpful ideas on this problem... I really need help interpreting what the error means,and what the likely cause could be?The best idea seems to be:"Key-to-component mappings are generally defined in cocoon.xconf."What key-to-component mapping is likely to be on my development PC but not be on the server, and therefore contributing to the problem?ThanksDerekPS Please note that I can read data from my targetdatasource with SQLTransformer; its just flow that seemsproblematic... [EMAIL PROTECTED] 2006/01/23 04:48 PM Jason Johnston wrote: Derek Hohls wrote: I have an app that works fine on a development machine (Cocoon 2.1.5, WindowsXP, Tomcat 4.1.x, JDK 1.4.x) But when I upload it and try and run it on the server: (Cocoon 2.1.5, UNIX, Tomcat 4.1.x, JDK 1.4.x) I get the error: ERROR (2006-01-23) 11:38.25:783 [sitemap.handled-errors] (/cocoon215/inddb/db/editUser.do) Thread-20/PipelineNode: "resource://org/apache/cocoon/components/flow/_javascript_/Database.js", line 33: uncaught _javascript_ exception: at editUser (file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/inddb/script/user.js, Line 46) at (file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/inddb/script/user.js, Line 6) at (resource://org/apache/cocoon/components/flow/_javascript_/Database.js, Line 33): org.apache.avalon.framework.service.ServiceException: datasources: ComponentSelector could not find the component for hint [inddb] (key [inddb]) (Key='org.apache.avalon.excalibur.datasource.DataSourceComponentSelector/inddb') How to interpret the "ComponentSelector could not find the component" error message - what is the software looking for?? This means it is trying to look up the Avalon component for that key, and failing for some reason. Key-to-component mappings are generally defined in cocoon.xconf. (I am also not sure where the : org/apache/cocoon/components/flow/_javascript_/Database.js file is located... its not under WEB-INF/classes/... ?) Doing a quick search it looks like Database.js is part of the Petstore sample block: /src/blocks/petstore/trunk/java/org/apache/cocoon/components/flow/_javascript_/Database.jsIs your application perhaps relying on this file for some reason, but the Petstore block didn't get built in the version on your server?Bah, nevermind that, of course the file is there if the error is occurring within it. ;-)My guess now is that your datasource configuration from cocoon.xconf did not get copied over to the server.-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions ande-mail legal notice. Views expressed herein do not necessarily represent theviews of the CSIR.CSIR E-mail Legal Noticehttp://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditionshttp://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIRLegal Notice send a blank message with REQUEST LEGAL in the subject line to[EMAIL PROTECTED]This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Cocoon hosting advice needed
Hi Could anybody point me to a web host which provides support and technical advice for Cocoon (preferably 2.1.8). I've been looking around and it seems a lot of hosts offer Cocoon, but not expert advice on running the framework. Thanks in advance Tom Roberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a suprise problem
2006/2/7, wangwenzhou wangwenzhou [EMAIL PROTECTED]: Initialization Problem Message: org.apache.cocoon.faces.samples.components.taglib.AreaTag Description: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.components.ExtendedComponentSelector for component named apos;http://java.sun.com/jsf/demo/componentsapos; at jndi:/localhost/cocoon/WEB-INF/cocoon.xconf:1875:156 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet cause java.lang.ClassNotFoundException: org.apache.cocoon.faces.samples.components.taglib.AreaTag If you do not need it, disable the offending component (remove it from your cocoon.xconf file). You will find it around line 1875 (as said in the error message). HTH, -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon hosting advice needed
Hi there, What kind of usage are you likely to get? Are you looking to have a dedicated server or shared hosting? How much control do you want to have over the cocoon setup? David. On 7 Feb 2006, at 12:33, Tom Roberts LUXONLINE wrote: Hi Could anybody point me to a web host which provides support and technical advice for Cocoon (preferably 2.1.8). I've been looking around and it seems a lot of hosts offer Cocoon, but not expert advice on running the framework. Thanks in advance Tom Roberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scaling Cocoon to handle a heavy load
David Bishop wrote: Hi, Two weeks ago I asked for help regarding Cocoon performance. I was pointed in the direction of the JVM as I was running 1.4.2, I upgraded this to 1.5.0_05 which basically has better garbage collection management and it proved to be a great improvement of stability and performance. Even under duress my test server gracefully slowed down, not crashed and burned like before! This change has been made live and all is well site is performing beautifully and much quicker. Many Thanks, for the advice, greatly appreciated!! David. Thanks for the feedback--I was wondering how things turned out for you. I'm glad everything is working well for you. This might need to be in a FAQ somewhere, I'll check with the dev community - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repost: Profiles in Portal, how?
Hello List! I asked this a few days ago, but since then, I haven't really been making progress with this issue, so I'll just ask again: Does anyone have experience with the definition of role-based profiles for the cocoon-portal? It appears that cowarp at the moment does not support profiles very interesting. Switched back to the cocoon-authentication manager and everything works fine :) regards, christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forms encoding problem
I am struggling to get forms displayed on a server - UNIX machine running Cocoon 2.1.5 and JDK 1.4 (the same app works **fine** on the development machine, running the same configuration, as well as on a Linux server...) The error message I get when trying to show the form (filled with data from the database) is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 160 that is not represented in specified output encoding of . [and no, there is no word missing just before the above full stop] Based on mailing list and wiki suggestions I have tried: form action=... method=post accept-charset=ISO-8859-1 also: ?xml version=1.0 encoding=ISO-8859-1? in the form, *and* the stylesheet processing the form for display also, in cocoon.xconf jdbc name=pool_name pool-controller min=5 max=10/ dburljdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=trueamp;characterEncoding=ISO-8859-1/dburl userdatabase_user/user passworddatabase_password/password /jdbc NB - I am not trying to use any complex characters - inputs should be plain English! Is there a Definitive Guide to Using Encoding anywhere?? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installation JDBC error
hi i already solved it. It happen because of TCP connection for postgres is disable and it should enable tq all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
first thought: i think we had this error message when using escaped utf-8 chars... our source files are encoded in utf-8, and some guy inserted a escaped #160 in utf 8 with is nbsp; in utf-8 (!ENTITY *nbsp* #160;) this crashed the forms. didn't figure out why, not enough time, just threw out the escaped chars. but as you are using iso-8859-1, just search for a file that's not in the right encoding, or a string 160 in your form files and delete this... (ultraedit or grep, depending on your system :-) ) probably one of your coders or editors uses utf-8, so you'll accidently inserted this utf-8 fragment (and doesn't know it :-) ) second thought: are you sure that the configuration is the same ? maybe the app server has other defaults, that you don't set in your application config... no server admin guru, but we had problems in this area. Maybe it helps to set some init-params in web.xml, here comes a snippet from my app (replaced my setting utf-8 with your setting iso-8859-1) !-- Set encoding used by the container. If not set the ISO-8859-1 encoding will be assumed. -- init-param param-namecontainer-encoding/param-name param-valueISO-8859-1/param-value /init-param !-- Set form encoding. This will be the character set used to decode request parameters. If not set the ISO-8859-1 encoding will be assumed. -- init-param param-nameform-encoding/param-name param-valueISO-8859-1/param-value /init-param hth, tom Derek Hohls wrote: I am struggling to get forms displayed on a server - UNIX machine running Cocoon 2.1.5 and JDK 1.4 (the same app works **fine** on the development machine, running the same configuration, as well as on a Linux server...) The error message I get when trying to show the form (filled with data from the database) is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 160 that is not represented in specified output encoding of . [and no, there is no word missing just before the above full stop] Based on mailing list and wiki suggestions I have tried: form action=... method=post accept-charset=ISO-8859-1 also: ?xml version=1.0 encoding=ISO-8859-1? in the form, *and* the stylesheet processing the form for display also, in cocoon.xconf jdbc name=pool_name pool-controller min=5 max=10/ dburljdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=trueamp;characterEncoding=ISO-8859-1/dburl userdatabase_user/user passworddatabase_password/password /jdbc NB - I am not trying to use any complex characters - inputs should be plain English! Is there a Definitive Guide to Using Encoding anywhere?? Thanks Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
Le 7 févr. 06, à 14:37, Derek Hohls a écrit : ...Attempt to output character of integral value 160 that is not represented in specified output encoding of ... Might be related to your JVMs running with different default encodings. The JVM's default encoding can be set with the file.encoding system property, for example -Dfile.encoding=utf-8 on the JVM command line. -Bertrand smime.p7s Description: S/MIME cryptographic signature
accessing Datasource from custom ActionListener
Hi, I tried to move some flowscript functionality to a java class/object. In the formdefinition I have: fd:action id=publish fd:labeli18n:text i18n:key=createblog.Publiceer/i18n:text/fd:label fd:on-action java class=com.mobillion.blog.cocoon.event.DoSomethingWithTheDatabase/ /fd:on-action /fd:action I created a corresponding class: public class DoSomethingWithTheDatabase implements ActionListener, Serviceable, Disposable {} I need access to the DataSourceComponent object in this object. How do I do that? I tried to use the Servicable interface, but it isn't called at all.. Thanks for the help, Joost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error using org.xml.sax.InputSource
Hi there, I've been looking at using CForms and been trying out some of the demos along with my own forms. I've gotten stuck at binding; I've found a few of the demos and my own code was throwing the exception: java.lang.NoSuchMethodError: org.mozilla.javascript.JavaScriptException.sourceName()Ljava/lang/String; org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger$1.getLocation(LocationTrackingDebugger.java:61) org.apache.cocoon.util.location.LocationUtils.getLocation(LocationUtils.java:264) org.apache.cocoon.util.location.LocationUtils.getLocation(LocationUtils.java:203) ... which is at the Tomcat level but I assume that is because I'm not handling the exception. I've isolated it down to the bindings.js script in the forms sample and it looks like var is = new Packages.org.xml.sax.InputSource(source.getInputStream()); is the offending line. source appears to be not null and I'm having difficulty seeing where it is going wrong. Sorry I can't be more specific but I really don't have much idea of the issues that could be causing this. I'm using Java 1.5.0_04 and Cocoon 2.1.8 (though there might be a few non-standard libs; so I tried a standard build and got the same issues). Many thanks, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Fingerprint system writing by Cocoon
Tks Derek, You just like the part which is not designedby cocoon ;-) johnson - Original Message - From: Derek Hohls To: users@cocoon.apache.org Sent: Tuesday, February 07, 2006 7:16 PM Subject: Re: A Fingerprint system writing by Cocoon Not sure I like the maximised pop-up screen that happens when you do a search (using the icon). [EMAIL PROTECTED] 2006/02/07 12:26 PM Hi!This is a Fingerprint portal Auth and Check in/out system writing by Cocoon 2.1.8http://www.erp.tw/cocoon/shb/portaluser:demo pass:demo can login without fingerprint.It tested ok with Digital Persona U.Are.U 4000 fingerprint Device.now part of words are chinese, and i18n for english(en), chinese(zh_TW/zh_CN) are ok.Full i18n version (with english, chinese, japanese also french) will release soon.please give us advice.Best Regardsjohnson -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: tomcat and postgresql database integration
Is postmaster listening on socket (jdbc need it)? - cf postgresql.conf On Mon, 2006-02-06 at 19:38 +0700, zulhisham abu nawar wrote: hi... now i'm trying to integrate cocoon 2.1.8 with postgressql 7.4.11 with tomcat 5.0.28...My application can run without any errors but it not select any data from database...Below is my application details.. file:cocoon.xconf datasources !--+ | -ej | postgres +-- jdbc name=mytestdb logger=core.datasources.mytestdb pool-controller min=5 max=10/ dburljdbc:postgresql://127.0.0.1:5432/mytestdb/dburl userpostgres/user password/ /jdbc file:web.xml -- init-param param-nameload-class/param-name param-value!-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDriver org.postgresql.Driver /param-value /init-param file:pg_hba.conf # TYPE DATABASEUSERIP-ADDRESSIP-MASK METHOD local all all trust # IPv4-style local connections: hostall all 127.0.0.1 255.255.255.255 trust # IPv6-style local connections: hostall all ::1 :::::::trust any idea?? -- ::)- mister ijoi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP: How to create elements dynamically
Hi David, Fixed element names with dynamic attributes works for me. Thanks for your help. After looking around in Cocoon code, I found that dynamic element name creation is also supported! Here's a sample: xsp:element xsp:param name=name esql:get-column-name column=1/ /xsp:param esql:get-string column=1/ /xsp:element The above example would create an element which has the name of first column of the query. Ajit. --- David Bishop [EMAIL PROTECTED] wrote: Hi, I struggled with this one myself, I ended up having to use fixed element names, but being able to assign attributes dynamically using the following code. xsp:element name=table xsp:attribute name=nameesql:get-string column=relname// xsp:attribute xsp:element name=column xsp:attribute name=indexesql:get-string column=attnum// xsp:attribute ... /xsp:element /xsp:attribute /xsp:element My original aim was to query PostgreSQL to create an XML document describing the database schema of the database which would describe the relationships of the database for me to allow me to create forms more dynamically. The structure I ended up using which is created from the above is.. table name=author column name=index1/column ... /table This gets the information out and then of course if you needed it as author index1/index /author You could throw in a custom XSL transformation in the pipeline to achieve it. Don't know if this helps, David. On 6 Feb 2006, at 19:39, Ajit Bhave wrote: Hi, I am trying to creating elements dynamically in an XSP page. The XSP documentation has an example using xspParentNode. xspCurrentNode variables. But, when I use them in XSP page, I get unresolved symbols error. What is the recommended method for doing this in Cocoon 2.1? My environment is Cocoon 2.1 + JDK 1.5 + Redhat 7.2. Any help will be appreciated. Regards, Ajit. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xhtml table - mysqlimport
There's some data in an xhtml table which I'd like to import to a database using mysqlimport, or similar. Viewing the xhtml file from a browser doesn't display all the data--the data I'm after are the URL's. If I copy/paste from what the browser shows, the URL's aren't copied, but, of course, the links can be clicked on from the browser. I would need to do an XSLT transform, perhaps using cocoon, to extract that data? thanks, Thufir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xhtml table - mysqlimport
From: THUFIR HAWAT [EMAIL PROTECTED] Date: Tue, 7 Feb 2006 16:26:58 -0500 There's some data in an xhtml table which I'd like to import to a database using mysqlimport, or similar. Viewing the xhtml file from a browser doesn't display all the data--the data I'm after are the URL's. If I copy/paste from what the browser shows, the URL's aren't copied, but, of course, the links can be clicked on from the browser. You could always View Source and copy/paste from that, though you'd need to run it through a suitable editor macro or similar to strip out the rest of the markup. I would need to do an XSLT transform, perhaps using cocoon, to extract that data? That's another possibility. Or, if you've got XMLSpy you could open the URL in one window, write some XSL in another, and even run it without leaving the program. No doubt other XML/XSL editors could do the same; XMLSpy's just the one I've been using most recently so I know it's possible in that. Or you could write the XSL and create a Cocoon pipeline to read the file (on disk or via HTTP) and apply it. Whether it's worth the extra effort to configure that depends on how often you need to do and whether you need anything else from it. If it's just a one-off and you can do it in an editor without worrying about installation configuration, you may as well do that. Or write a shell script to run it with Saxon and set up a cron job. Unless you need to serve the results up over the web, Cocoon's probably overkill. Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Exception in ServerPagesGenerator.generate()
Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: exec sp_getRecommendations [EMAIL PROTECTED]: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '.'. this account isnt letting me activate it
Re: tomcat and postgresql database integration
yes in postgresql.conf postgresql 7.4 tcpip_socket = true postgresql 8.X listen_addresses = '*' best regards johnson - Original Message - From: Olivier [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Wednesday, February 08, 2006 3:52 AM Subject: Re: tomcat and postgresql database integration Is postmaster listening on socket (jdbc need it)? - cf postgresql.conf On Mon, 2006-02-06 at 19:38 +0700, zulhisham abu nawar wrote: hi... now i'm trying to integrate cocoon 2.1.8 with postgressql 7.4.11 with tomcat 5.0.28...My application can run without any errors but it not select any data from database...Below is my application details.. file:cocoon.xconf datasources !--+ | -ej | postgres +-- jdbc name=mytestdb logger=core.datasources.mytestdb pool-controller min=5 max=10/ dburljdbc:postgresql://127.0.0.1:5432/mytestdb/dburl userpostgres/user password/ /jdbc file:web.xml -- init-param param-nameload-class/param-name param-value!-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDriver org.postgresql.Driver /param-value /init-param file:pg_hba.conf # TYPE DATABASEUSERIP-ADDRESSIP-MASK METHOD local all all trust # IPv4-style local connections: hostall all 127.0.0.1 255.255.255.255 trust # IPv6-style local connections: hostall all ::1 :::::::trust any idea?? -- ::)- mister ijoi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table - mysqlimport
On 2/7/06, Andrew Stevens [EMAIL PROTECTED] wrote: From: THUFIR HAWAT [EMAIL PROTECTED] Date: Tue, 7 Feb 2006 16:26:58 -0500 There's some data in an xhtml table which I'd like to import to a database using mysqlimport, or similar. Viewing the xhtml file from a browser doesn't display all the data--the data I'm after are the URL's. If I copy/paste from what the browser shows, the URL's aren't copied, but, of course, the links can be clicked on from the browser. You could always View Source and copy/paste from that, though you'd need to run it through a suitable editor macro or similar to strip out the rest of the markup. Right, this works fine once, but this something I'd like to do in volume. I would need to do an XSLT transform, perhaps using cocoon, to extract that data? That's another possibility. Or, if you've got XMLSpy you could open the URL in one window, write some XSL in another, and even run it without leaving the program. No doubt other XML/XSL editors could do the same; XMLSpy's just the one I've been using most recently so I know it's possible in that. XMLSpy would work, I think, but I'd like to do it myself, and can't afford the software at the moment. Or you could write the XSL and create a Cocoon pipeline to read the file (on disk or via HTTP) and apply it. Whether it's worth the extra effort to configure that depends on how often you need to do and whether you need anything else from it. If it's just a one-off and you can do it in an editor without worrying about installation configuration, you may as well do that. Or write a shell script to run it with Saxon and set up a cron job. Unless you need to serve the results up over the web, Cocoon's probably overkill. Andrew. .. I don't need to serve the results up over the web, but I do need to use something like mysqlimport to get the results into a database. Saxon sounds like it might be the way to go. I'd expect to do this about twice per day. What'd be the starting point to do this with Saxon, please? That is, I need to write the transform document, and run it from the shell? thanks, Thufir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table - mysqlimport
From: THUFIR HAWAT [EMAIL PROTECTED] Date: Tue, 7 Feb 2006 19:16:41 -0500 I would need to do an XSLT transform, perhaps using cocoon, to extract that data? That's another possibility. Or, if you've got XMLSpy you could open the URL in one window, write some XSL in another, and even run it without leaving the program. No doubt other XML/XSL editors could do the same; XMLSpy's just the one I've been using most recently so I know it's possible in that. XMLSpy would work, I think, but I'd like to do it myself, and can't afford the software at the moment. Another possibility - I just checked the XML features in Netbeans and that can run XSL Transformations. Free download from http://www.netbeans.org/downloads/index.html No doubt there's an equivalent Eclipse plugin too. I don't need to serve the results up over the web, but I do need to use something like mysqlimport to get the results into a database. Saxon sounds like it might be the way to go. I'd expect to do this about twice per day. What'd be the starting point to do this with Saxon, please? That is, I need to write the transform document, and run it from the shell? Yes, with something like java -jar dir/saxon.jar [options] source-document stylesheet [params ] See http://saxon.sourceforge.net/saxon6.5.2/using-xsl.html Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP]Exception in ServerPagesGenerator.generate()
[EMAIL PROTECTED] wrote: Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: exec sp_getRecommendations [EMAIL PROTECTED]: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '.'. this account isnt letting me activate it Hard to tell. Can you send more info? Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and postgresql database integration
done.. tq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table - mysqlimport
On 2/7/06, Andrew Stevens [EMAIL PROTECTED] wrote: .. Another possibility - I just checked the XML features in Netbeans and that can run XSL Transformations. Free download from http://www.netbeans.org/downloads/index.html No doubt there's an equivalent Eclipse plugin too. Great, thanks :) .. That is, I need to write the transform document, and run it from the shell? Yes, with something like java -jar dir/saxon.jar [options] source-document stylesheet [params…] See http://saxon.sourceforge.net/saxon6.5.2/using-xsl.html .. Great, thanks :) I have some research to do. Thanks, Andrew, for pointing me in the right direction(s). I like the idea of using saxon, but, at the same time, I should be pragmatic, perhaps, and pick a tool with a shorter learning curve. -Thufir
Re: Error using org.xml.sax.InputSource
Stewart, Gary wrote: Hi there, I've been looking at using CForms and been trying out some of the demos along with my own forms. I've gotten stuck at binding; I've found a few of the demos and my own code was throwing the exception: java.lang.NoSuchMethodError: org.mozilla.javascript.JavaScriptException.sourceName()Ljava/lang/String; org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger$1.getLocation(LocationTrackingDebugger.java:61) org.apache.cocoon.util.location.LocationUtils.getLocation(LocationUtils.java:264) org.apache.cocoon.util.location.LocationUtils.getLocation(LocationUtils.java:203) ... which is at the Tomcat level but I assume that is because I'm not handling the exception. I've isolated it down to the bindings.js script in the forms sample and it looks like var is = new Packages.org.xml.sax.InputSource(source.getInputStream()); is the offending line. source appears to be not null and I'm having difficulty seeing where it is going wrong. Sorry I can't be more specific but I really don't have much idea of the issues that could be causing this. I'm using Java 1.5.0_04 and Cocoon 2.1.8 (though there might be a few non-standard libs; so I tried a standard build and got the same issues). You should search and remove any older xml-apis.jar somewhere in the class path. Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table - mysqlimport
On 2/7/06, Andrew Stevens [EMAIL PROTECTED] wrote: .. That is, I need to write the transform document, and run it from the shell? Yes, with something like java -jar dir/saxon.jar [options] source-document stylesheet [params…] See http://saxon.sourceforge.net/saxon6.5.2/using-xsl.html .. iTunes stores similar information for each song in the library between a set of dict tags. My immediate goal in PHP is to turn the provided XML into a PHP structure. I've opted to turn this data into a two-dimensional array that will look like this: http://developer.apple.com/internet/opensource/php.html I think I want turn the data into an array, also. Yes? Kinda similar to the above example in terms of the goal. ? -Thufir
Re: Cforms binding differences between 2.1.7 and 2.1.8?
Is [1] your problem? - Best Regards, Antonio Gallardo [1] http://issues.apache.org/jira/browse/COCOON-1705 Antonio Fiol Bonnín wrote: Hello, I am using bindings to edit a certain part of the file. However, I am trying to get some fields mapped to a completely different part of it. I think this binding file used to work perfectly with 2.1.7 and does not work completely on 2.1.8. Any idea why? The portion not working (fields do not get filled in) under 2.1.8 is: fb:value id=nombre path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName direction=load / fb:value id=apellidos path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn direction=load / Thank you very much. -- Antonio Fiol fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; path=/agregado/permisos/publicacion/[EMAIL PROTECTED]'${parameters.getParameter('id')}'] fb:value id=nombre path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName direction=load / fb:value id=apellidos path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn direction=load / fb:value id=login path='${parameters.getParameter('id')}' direction=load / fb:repeater id=permisos parent-path=. row-path=permiso fb:identity fb:value id=id path=concat(@fullPath,',',@dir) direction=load / /fb:identity fb:on-bind fb:value id=fullPath path=@fullPath direction=load / fb:value id=dir path=@dir direction=load / fb:value id=permiso path=@permiso fd:convertor datatype=boolean / /fb:value /fb:on-bind /fb:repeater /fb:context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
Tom Thanks for all the hints and info - as I said, I have never had this issue before when using forms... but this is the first time I use them when talking back-and-forth to a database that is why I thought the issue is there. I would prefer to find a solution that does not require me to fix my existing code (which, after all, runs fine under Windows and Linux!) - I will try the web.xml config files changes you suggest. PS Is there any good reason to prefer ISO-8859-1 over UTF-8 ... these seem to be used interchangeably, but I guess they are not? [EMAIL PROTECTED] 2006/02/07 03:58:54 PM first thought: i think we had this error message when using escaped utf-8 chars... our source files are encoded in utf-8, and some guy inserted a escaped #160 in utf 8 with is nbsp; in utf-8 (!ENTITY *nbsp* #160;) this crashed the forms. didn't figure out why, not enough time, just threw out the escaped chars. but as you are using iso-8859-1, just search for a file that's not in the right encoding, or a string 160 in your form files and delete this... (ultraedit or grep, depending on your system :-) ) probably one of your coders or editors uses utf-8, so you'll accidently inserted this utf-8 fragment (and doesn't know it :-) ) second thought: are you sure that the configuration is the same ? maybe the app server has other defaults, that you don't set in your application config... no server admin guru, but we had problems in this area. Maybe it helps to set some init-params in web.xml, here comes a snippet from my app (replaced my setting utf-8 with your setting iso-8859-1) !-- Set encoding used by the container. If not set the ISO-8859-1 encoding will be assumed. -- init-param param-namecontainer-encoding/param-name param-valueISO-8859-1/param-value /init-param !-- Set form encoding. This will be the character set used to decode request parameters. If not set the ISO-8859-1 encoding will be assumed. -- init-param param-nameform-encoding/param-name param-valueISO-8859-1/param-value /init-param hth, tom Derek Hohls wrote: I am struggling to get forms displayed on a server - UNIX machine running Cocoon 2.1.5 and JDK 1.4 (the same app works **fine** on the development machine, running the same configuration, as well as on a Linux server...) The error message I get when trying to show the form (filled with data from the database) is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 160 that is not represented in specified output encoding of . [and no, there is no word missing just before the above full stop] Based on mailing list and wiki suggestions I have tried: form action=... method=post accept-charset=ISO-8859-1 also: ?xml version=1.0 encoding=ISO-8859-1? in the form, *and* the stylesheet processing the form for display also, in cocoon.xconf jdbc name=pool_name pool-controller min=5 max=10/ dburljdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=trueamp;characterEncoding=ISO-8859-1/dburl userdatabase_user/user passworddatabase_password/password /jdbc NB - I am not trying to use any complex characters - inputs should be plain English! Is there a Definitive Guide to Using Encoding anywhere?? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP]Exception in ServerPagesGenerator.generate()
Le 8 févr. 06, à 00:01, [EMAIL PROTECTED] a écrit : ...java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '.' Sounds like the SQL being sent to the database server has a syntax error. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: Cforms binding differences between 2.1.7 and 2.1.8?
I don't think so. I am executing ldap:execute-query only, and the same pipeline (=ldap query) works in other places in our application. It looks more like a binding issue instead, possibly being caused by absolute xpath expressions pointing outside the context. -- Antonio 2006/2/8, Antonio Gallardo [EMAIL PROTECTED]: Is [1] your problem? - [1] http://issues.apache.org/jira/browse/COCOON-1705 Hello, I am using bindings to edit a certain part of the file. However, I am trying to get some fields mapped to a completely different part of it. I think this binding file used to work perfectly with 2.1.7 and does not work completely on 2.1.8. Any idea why? The portion not working (fields do not get filled in) under 2.1.8 is: fb:value id=nombre path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName direction=load / fb:value id=apellidos path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn direction=load / fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; path=/agregado/permisos/publicacion/[EMAIL PROTECTED]'${parameters.getParameter('id')}'] fb:value id=nombre path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName direction=load / fb:value id=apellidos path=/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn direction=load / fb:value id=login path='${parameters.getParameter('id')}' direction=load / fb:repeater id=permisos parent-path=. row-path=permiso fb:identity fb:value id=id path=concat(@fullPath,',',@dir) direction=load / /fb:identity fb:on-bind fb:value id=fullPath path=@fullPath direction=load / fb:value id=dir path=@dir direction=load / fb:value id=permiso path=@permiso fd:convertor datatype=boolean / /fb:value /fb:on-bind /fb:repeater /fb:context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
2006/2/8, Derek Hohls [EMAIL PROTECTED]: PS Is there any good reason to prefer ISO-8859-1 over UTF-8 ... these seem to be used interchangeably, but I guess they are not? They are different. If your app only uses latin characters, you could use one or the other. Otherwise, you should use UTF-8. But beware that mixing is not good, especially if you mix them in the same document. Both encodings encode the same characters in very different ways (except for standard ASCII, which happens to be encoded the same). If you mix, you may run into trouble. You probably already ran into trouble. ;-) -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
Antonio I guess I did - strange that it happens only on the one server.. maybe UNIX less forgiving than Linux. Is there a default encoding that Cocoon makes use of? IOW, if I import or reuse stylesheets from Cocoon samples etc. will I expect to see these in UTF-8? Can I simply omit the encoding parameter from *all* my files and set a default for the entire project (in the sitemap, for example). That way I could avoid the mixing problem you refer to. Or if this is all spelt out in great detail, somewhere, I'd like to go and read up about it... Thanks Derek [EMAIL PROTECTED] 2006/02/08 09:36:44 AM 2006/2/8, Derek Hohls [EMAIL PROTECTED] : PS Is there any good reason to prefer ISO-8859-1 over UTF-8 ... these seem to be used interchangeably, but I guess they are not? They are different. If your app only uses latin characters, you could use one or the other. Otherwise, you should use UTF-8. But beware that mixing is not good, especially if you mix them in the same document. Both encodings encode the same characters in very different ways (except for standard ASCII, which happens to be encoded the same). If you mix, you may run into trouble. You probably already ran into trouble. ;-) -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]