Re: [2.1] Non-trivial uses of i18n transformer

2016-05-23 Thread Marc Salvetti
net >: > Francesco, > > On 5/23/16 9:58 AM, Francesco Chicchiriccò wrote: > > On 23/05/2016 15:55, Christopher Schultz wrote: > >> Marc, > >> > >> On 5/23/16 9:39 AM, Marc Salvetti wrote: > >> > Try something like this >> > I18n-attr=&q

Re: [2.1] Non-trivial uses of i18n transformer

2016-05-23 Thread Marc Salvetti
Hi Chris, Try something like this That's by memory but should find the exact syntax in the doc Hope this helps, Marc Le 23 mai 2016 8:31 PM, "Christopher Schultz" a écrit : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I'm finally getting

Re: switch off parser validation in cocoon 2.2

2008-06-09 Thread Marc Salvetti
Thanks a lot for the pointer, it seems to be what I'm looking for. Marc 2008/6/7 Grzegorz Kossakowski [EMAIL PROTECTED]: Marc Salvetti pisze: Hello, I'm having a big issue that just appeared after a server crash, I don't know why, either it's a configuration problem but now get

Saving a file from the cocoon webapp

2008-06-09 Thread Marc Salvetti
Hello, I'm having a file permission problem with my webapp, and it seems to be due to the app overwriting the saved file rather than saving it. After the file is saved, the group have changed to nobody, which creates problems in my case. I'm using a function that was fond in the cocoon examples

switch off parser validation in cocoon 2.2

2008-06-02 Thread Marc Salvetti
Hello, I'm having a big issue that just appeared after a server crash, I don't know why, either it's a configuration problem but now get the following error when accessing some parts of the project. From what I understand, it's an xml validation issue as apparently the parser try to find an xml

Re: Validation de formulaire Ajax

2008-05-15 Thread Marc Salvetti
formulaire. Une idée ? André Davignon Le 15/05/2008 06:20, Marc Salvetti (par Internet, dépôt [EMAIL PROTECTED]) a écrit : Bonjour André, est-ce que tu as bien un pipe pour la continuation. Dans mon appli j'ai plutot qq chose comme ca et ca marche bien : ft:form-template action

Re: Validation de formulaire Ajax

2008-05-15 Thread Marc Salvetti
ca n'est probablement pas le probleme mais il me semble que le submitonchange=true n'est pas necessaire pour les input de type submit, c'est plus pour les listes de selection ou les champs texte. Pour ton probleme, je pense qu'il faut passer au debugger javascript pour arriver a voir ce qui se

Re: Validation de formulaire Ajax

2008-05-14 Thread Marc Salvetti
Bonjour André, est-ce que tu as bien un pipe pour la continuation. Dans mon appli j'ai plutot qq chose comme ca et ca marche bien : ft:form-template action=continue.html method=post ajax=true ft:widget id=continuation-idfi:styling type=hidden/fi:styling

Re: ajax request and another cform in the same page

2007-05-15 Thread Marc Salvetti
. Even if I know this doesn't help you solve the problem ... maybe it helps you find it. Feel free to contact me. I will do my best to help you if you provide a little more detailed description of your problem / applicatoin setup / intention. Chris Marc Salvetti schrieb: Hello, i'm running

ajax request and another cform in the same page

2007-05-14 Thread Marc Salvetti
Hello, i'm running in a tricky problem while trying to add a search form to every page of the site. Anytime an ajax request is sent, either by a cform widget on another form, or by a custom js function, i get an error 500 : *Couldn't evaluate expression cformsHelper.pushWidget(id)*

Re: [Re: Ajax + Formulaire]

2007-05-02 Thread Marc Salvetti
A priori via le css mais c'est bizarre, pour moi elles prennent la largeur du mot le plus large Marc Le 02/05/07, Julien Flotté [EMAIL PROTECTED] a écrit : Merci pour ces precisions, j'ai reussi à m'en sortir :) J'ai un autre probleme concernant un tout autre sujet : les listes de

Re: Ajax + Formulaire

2007-04-30 Thread Marc Salvetti
Bonjour, il faut avoir des bu:replace id= autour des données a rafraichir et il faut envoyer une requete xml post avec cocoon-ajax=true j'utilise ces petites fctions qui sont bien pratique function createXHR() { if (window.XMLHttpRequest) return new XMLHttpRequest; else if

Re: Ajax + Formulaire

2007-04-30 Thread Marc Salvetti
ajouter le lien vers ce fichier js dans le head Julien From: Marc Salvetti [EMAIL PROTECTED] Reply-To: users-fr@cocoon.apache.org To: users-fr@cocoon.apache.org Subject: Re: Ajax + Formulaire Date: Mon, 30 Apr 2007 19:29:01 +0700 Bonjour, il faut avoir des bu:replace id= autour des données

xmldb pseudo-protocol using specific namespace

2007-04-02 Thread Marc Salvetti
Hello, i need to query a list of document in a specific namespace using the xmldb pseudo-protocol and an xpath like this : xmldb:exist:/db/boats/{1}/planning#/planning:cruise I get an error regarding the undeclared planning namespace and I didn't find where to declare it. I didn't find much

Re: raster (jpeg, png) graphics in Batik SVG rasterizer under Cocoon

2007-04-02 Thread Marc Salvetti
Hi Wendell, i had a similar pb and it was because of org.apache.cocoon.xml.dom.SVGBuilder.java and a pb in the endDocument function because of a bad base url and something about a call to the setDocumentLocator function. I didn't really solved the issue, just pointed it and changed it to fit my

Integration of exist in cocoon 2.2

2007-03-14 Thread Marc Salvetti
Hello, sorry for cross posting but i didn't get an answer on the exist ml. i'm trying to integrate exist in my cocoon 2.2 webapp and i have a problem with the exist webapp itself, and more specificaly with the xqueries and the XQueryGenerator. I can access the data with the xmldb: pseudo

Re: Cocoon 2.2 (Trunk) POI Bloc

2007-02-28 Thread Marc Salvetti
Hi Jerome, i reproduced the problem and noticed that touching the sitemap is enough instead of reloading the server, still bad but that could be a lead to identify the problem Marc 2007/2/17, Jerome Benezech [EMAIL PROTECTED]: Hi all, I am running into a problem with cocoon 2.2 (JDK 1.5)

Re: Récupérer un attribut de session dans le src d'un JXTemplate

2007-02-24 Thread Marc Salvetti
Ce que tu as ecrit m'a l'air correct, et je ne vois pas comment pourquoi cinclude serait geré differement, par contre, ton code n'est peut etre pas au bon endroit ? essaye peut etre de mettre le map:handle-errors a la fin du pipe contenant le cinclude Marc Le 24/02/07, Patrick Thomas [EMAIL

Re: Récurérer un attribut de session dans le src d'un JXTemplate

2007-02-21 Thread Marc Salvetti
Bonjour Patrick, sans rentrer dans le detail, je pense que ce que tu cherche est le cinclude ou le xinclude transformer qq chose comme : map:match pattern=**.inc map:generate type=jx src={1}/ !-- traitement xslt et sérialisation -- /map:match qui serait appelé

Re: Envoi de mail dans une application

2007-02-01 Thread Marc Salvetti
Bonjour Jean-Phillippe, ton pb viens du fait que tu n'es pas cencé travailler dans la sitemap principale de cocoon mais dans un repertoire contenant ton module d'envoi de mail, qui lui est monté par la sitemap cocoon. pour resumer, la sitemap de cocoon se trouve dans le dossier racine, et elle

Re: Envoi de mail dans une application

2007-02-01 Thread Marc Salvetti
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: mail/send-a-mail map:mount - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps /cocoon/sitemap.xmap - 951:66 apparement il cherche ton pipe dans la sitemap principale, alors qu'il devrait

Re: Envoi de mail dans une application

2007-02-01 Thread Marc Salvetti
/ map:serialize type=xml/ /map:act /map:match /map:pipeline /map:pipelines /map:sitemap Le fichier est bien nommé sitemap.xmap et est placé dans cocoon/mail -Original Message- From: Marc Salvetti [mailto:[EMAIL

Re: Envoi de mail dans une application

2007-02-01 Thread Marc Salvetti
ferai. phil -Original Message- From: Marc Salvetti [mailto:[EMAIL PROTECTED] Sent: jeudi 1 février 2007 15:23 To: users-fr@cocoon.apache.org Subject: Re: Envoi de mail dans une application Oui, ca a un rapport, l'action de ton formulaire correspond a l'url que recoit cocoon : quand tu

Re: Envoi de mail dans une application

2007-02-01 Thread Marc Salvetti
carrément mon serveur avec mes pass, ca marche pas du tout. Toujours la meme erreur... -Original Message- From: Marc Salvetti [mailto:[EMAIL PROTECTED] Sent: jeudi 1 février 2007 16:12 To: users-fr@cocoon.apache.org Subject: Re: Envoi de mail dans une application Non, le pb vient pas de la, la

Repeater in form

2006-04-05 Thread Marc Salvetti
Hello,i'm having trouble integrating a repeater in a form. I copied the implementation made for LabelsThe template, metabind and repository files look ok when i load them trough the sample page, but when i try to display the form i get the following : org.xml.sax.SAXException: Element

Re: Repeater in form

2006-04-05 Thread Marc Salvetti
Hi Simone, thanks for your help,i understand it's a template problem, but since the template is generated from the meta-bind, the error should be here : meta:group label=Resources styling-layout=columns meta:group label=Resources styling-layout=columns fb:simple-repeater id=resources

Re: Repeater in form

2006-04-05 Thread Marc Salvetti
at the generated template file, it has the widget-label element at the correct place.Marc2006/4/5, Marc Salvetti [EMAIL PROTECTED] :Hi Simone, thanks for your help,i understand it's a template problem, but since the template is generated from the meta-bind, the error should be here : meta:group

Re: Repeater in form

2006-04-05 Thread Marc Salvetti
=resources row-path=resource While it should be ft:repeater .. Simone Marc Salvetti wrote: Hi Simone, thanks for your help, i understand it's a template problem, but since the template is generated from the meta-bind, the error should be here : meta:group label=Resources styling-layout

Re: Repeater in form

2006-04-05 Thread Marc Salvetti
.. or other styling inromations to be repeated for every line of the repeater ft:widget-label ... / ft:widget ... / /ft:repeater-widget But this last syntax is not AJAX compatible. Simone Marc Salvetti wrote: Indeed it seems to be related, if i change to ft:repeater i don't have the error

Re: Pb using tabs with the task tree sample

2006-03-24 Thread Marc Salvetti
Looking at the dom inspector, i can see the cause of the problem :The generated ids of the enclosing DIV for the task and it's subtask are the same.Does someone know where these ids are generated or how to fix that ? Thanks,Marc2006/3/24, Marc Salvetti [EMAIL PROTECTED]: Hello,i'm trying to extend

Re: Gantt graph using Fins ?

2006-03-23 Thread Marc Salvetti
Yes it is alive, but the development has been limited to some patchesfor the past year and half. Anyway, Marc is through a massive refactoring of the codebase... hopefully laying the foundation for thewhole of JFreeChart to be included in Fins.Thanks, that's great news !Do you have an idea of how

Pb using tabs with the task tree sample

2006-03-23 Thread Marc Salvetti
Hello,i'm trying to extend the task tree sample by adding tabs to a task.The problem is when i create a subtask, then try to change tab on any of the parent tasks. The form get confused and swich tabs on the subtask, not on the parent. This seems to be ajax-related as if i turn ajax to false, the

Gantt graph using Fins ?

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

Re: Back button issues with multipage forms

2006-03-15 Thread Marc Salvetti
Hi Craig,i did run into the problem, and i didn't find other satisfiying solution than to cut down my multipage form to several forms called successively from the same flowscript function.You can also try to hack the pb with something like that : var submitWidget =

Re: OT: Signature brands

2006-01-04 Thread Marc Salvetti
:))2006/1/4, Peter Flynn [EMAIL PROTECTED]: Sorry, I couldn't resist this one:http://www.newtree.be/en/choco_cocoon.php///Peter- To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Re: Envoyer une requete ajax ?

2005-11-25 Thread Marc Salvetti
Voui, puisque je l'ai écrite avec mes petits doigts :-) Je sais pas pourquoi, mais je me doutais que c'est toi qui allait répondre ;) Un bémol toutefois: cette librairie est à considérer comme interne à Cocoon et va fortement évoluer dans les prochaines semaines, lors de l'intégration de

Envoyer une requete ajax ?

2005-11-24 Thread Marc Salvetti
Bonjour, je voudrais memoriser la position d'un menu flottant dans mon appli, de façon a ce qu'il reste a l'endroit ou l'utilisateur le pose quand on passe de page en page. Pour ça, je voudrais utiliser la petite librairie ajax qui se trouve dans le nouveau bloc, car je voudrais eviter de

Re: Sending html messages with pdf attachments using sendMail action

2005-11-22 Thread Marc Salvetti
) method rather than the setText(body, charset) method. It works fine, and i would like to contribute the fix, but since i'm not a commiter, i don't know how to do Marc 2005/11/21, Marc Salvetti [EMAIL PROTECTED]: 2005/11/21, Marc Salvetti [EMAIL PROTECTED]: That's why i'm trying to do for a while

Re: Sending html messages with pdf attachments using sendMail action

2005-11-22 Thread Marc Salvetti
don't know how to do Marc 2005/11/21, Marc Salvetti [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: 2005/11/21, Marc Salvetti [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: That's why i'm trying to do for a while now and i came to the following problems : - if i use the action and set the src attribute

Sending html messages with pdf attachments using sendMail action

2005-11-21 Thread Marc Salvetti
That's why i'm trying to do for a while now and i came to the following problems : - if i use the action and set the src attribute to a cocoon pipeline producing html, the Content-disposition = attachment header is added, which i don't want (i want the html inline), but the pdf file is attached

Re: Sending html messages with pdf attachments using sendMail action

2005-11-21 Thread Marc Salvetti
2005/11/21, Marc Salvetti [EMAIL PROTECTED]: That's why i'm trying to do for a while now and i came to the following problems : - if i use the action and set the src attribute to a cocoon pipeline producing html, the Content-disposition = attachment header is added, which i don't want (i want

Re: execute js after row-delete ?

2005-11-19 Thread Marc Salvetti
= row.parent; repeater.removeRow(repeater.indexOf(row)); // Your extra code here.../fd:_javascript_/fd:on-action/fd:actionHope this helps...RobinOn 16 Nov 2005, at 11:01, Marc Salvetti wrote: Hello,I have a cart displaying an invoice on top of the page and a cforms with a repeater displaying

execute js after row-delete ?

2005-11-16 Thread Marc Salvetti
Hello, I have a cart displaying an invoice on top of the page and a cforms with a repeater displaying the products at the bottom of the page. I need to update the invoice when a row is deleted in the repeater The calculation of the invoice is done on the server and need to read from the dom

Re: CForms, databinding and databases

2005-11-15 Thread Marc Salvetti
Because... because... don't know why!! I think I need two widgetsbecause of the need to have two kinds of telephone number... How I can use just one widget for both of them?Sorry if this is a dummy question... I think i see your problem now, i didn't understand you need to have several different

Re: CForms, databinding and databases

2005-11-14 Thread Marc Salvetti
Yes, because I'm using a DB that has, for example, a table called telephoneNumber. How's that a problem? fd:field id=telephoneNumber works perfectly! I might be wrong, but if telephoneNumber is a table, i think it should be mapped to a repeater, not to a field. snip/ Now, I suppose is clear

js après row-delete action

2005-11-11 Thread Marc Salvetti
Bonjour, j'ai le problème suivant : j'ai un formulaire qui affiche des infos (une facture) en haut de page et un repeater en bas qui liste les produits. J'ai besoin de mettre à jour la facture quand une ligne est supprimée dans le repeater. Le calcul de la facture passe par le serveur et attend

2.1.8 and mail block

2005-11-10 Thread Marc Salvetti
Hello, i recently updated to 2.1.8 rc1, and i have some problems running the mail block. The first thing is that if i don't have mail.jar and activation.jar or if i have old versions of this jars or if i have recent versions doesn't change anything to my problem. If i try to send mail from my

Re: 2.1.8 and mail block

2005-11-10 Thread Marc Salvetti
Here's a wild guess. Check in your WEB-INF/lib to see anything beginningwith geronimo-spec. If there, delete them. They are (as far as I understand it) jar files that allow us to compileCocoon, but do not provide the full functionality that is required andcould account for method not yet

Re: Ajaxeries

2005-11-09 Thread Marc Salvetti
Merci beaucoup pour ta réponse, ton idee à l'air assez puissante, je vais essayer. Par contre, on dirait que je vais avoir pas mal de boulot pour integrer ça dans ma vielle sitemap :/ Marc Le 09/11/05, Sylvain Wallez [EMAIL PROTECTED] a écrit : Marc Salvetti wrote: Où se trouve ton

Re: Ajaxeries

2005-11-09 Thread Marc Salvetti
Merci pour le lien, je l'ai transmis à ma soeur qui à 6 enfants plutot turbulents, ça pourrait les calmer :)) Le 09/11/05, Sylvain Wallez [EMAIL PROTECTED] a écrit : Marc Salvetti wrote: Merci beaucoup pour ta réponse, ton idee à l'air assez puissante, je vais essayer. Les idées

Re: Ajaxeries

2005-11-07 Thread Marc Salvetti
Merci pour le lien, je vais lire ça tout de suite. Oui, j'ai mis le browser-update, mais uniquement après le generate jx, pas dans le pipe d'au dessus qui fait l'aggregation. Marc Le 07/11/05, Sylvain Wallez [EMAIL PROTECTED] a écrit : Marc Salvetti wrote: Bonjour, je suis en train

Re: Ajaxeries

2005-11-07 Thread Marc Salvetti
continuation, du fait de sortir du premier showForm() pour en relancer un autre à chaque nouvelle requete ? Marc Le 07/11/05, Sylvain Wallez [EMAIL PROTECTED] a écrit : Marc Salvetti wrote: Merci pour le lien, je vais lire ça tout de suite. Oui, j'ai mis le browser-update, mais uniquement après le

Re: Ajaxeries

2005-11-07 Thread Marc Salvetti
l'execution de showForm ?) pour les appels suivants. Est-ce que j'ai bon ? Marc Le 07/11/05, Marc Salvetti [EMAIL PROTECTED] a écrit : Dans ajax-action, tu dois mettre l'action qui rappelle la continuation, qui elle même, après traitement de la form, rappelera le pipeline d'affichage

Re: Ajaxeries

2005-11-07 Thread Marc Salvetti
Le 07/11/05, Jean-Christophe Kermagoret [EMAIL PROTECTED] a écrit : Concrètement, map:match pattern=controller map:select type=request-method map:when test=POST !-- Tu n'appelles pas ton agrégation -- map:call continuation={request-param:continuation-id}/ /map:when map:when test=GET !--

Ajaxeries

2005-11-06 Thread Marc Salvetti
Bonjour, je suis en train d'essayer d'ajaxiser un formulaire de mon appli, et j'ai rencontré d'abord ce problème dont j'ai trouvé la réponse, mais je la copie juste au cas ou :) Au début chaque requete affichait le message No xml answer. En fouillant un peu, je me suis rendu compte que c'est

Re: 2.1.8 et fd:group

2005-11-05 Thread Marc Salvetti
Je me repond tout seul, vu que j'ai trouvé le probleme :) C'est le fichier forms-samples-styling.xsl qui a changé. Du coup j'ai une question, est-ce qu'il est possible de referencer ce fichier à partir de la build cocoon ? du genre resource://quelquechose ? Marc Le 04/11/05, Marc Salvetti [EMAIL

Re: [Poll] What sources of information do you use?

2005-10-12 Thread Marc Salvetti
Questions:1. What is your favorite source of information, in other words: where would you be most likely to read these articles if they were published? On the official cocoon website or on the wiki 2. Where would your boss/person deciding on framework be most likely toread these articles? I'm the

Re: E-CRUD Design Pattern

2005-09-19 Thread Marc Salvetti
Bonne nouvelle :) Au fait jc, tu as eu le temps de regarder le code que je t'ai envyé ? Marc Jean-Christophe Kermagoret a écrit : Bonjour, En y réfléchissant une fois supplémentaire, et en relisant les différents arguments des threads sur les licences, nous sommes d'accord pour passer en

Re: E-CRUD Design Pattern

2005-09-16 Thread Marc Salvetti
Thanks for the great work christophe, it's a really interesting solution. As many, i done something myself as an exercise that you may use. I designed a very small webapp with a few basic and probably reusable features like gui for user/group managment and gui for catalogues/messages managment,

Re: E-CRUD Design Pattern

2005-09-16 Thread Marc Salvetti
? No, i nearly worked with him trough ;) Marc Salvetti a écrit : Thanks for the great work christophe, it's a really interesting solution. As many, i done something myself as an exercise that you may use. I designed a very small webapp with a few basic and probably reusable features like

Re: Rappel du form template en cas d'erreur ?

2005-09-14 Thread Marc Salvetti
Salut Laurent, A mon avis, ce que tu veux faire est possible. Ton pb ressemble a une erreur ds l'enchainement des pipes. J'ai une config a peu pres similaire au niveau des composantes (menu, header, page centrale etc...), et je me souviens avoir longtemps tourné en rond pour arriver a regler

Re: How to evaluate an xpath expression against a dom tree in flow ?

2005-09-13 Thread Marc Salvetti
ago which included my general purpose flow script for DOM manipulation. Check it out at http://wiki.apache.org/cocoon/FlowBasedXMLEditor Regards, Tony Marc Salvetti wrote: Yes! thx a lot Tony, exactly what i needed ! btw is this referenced anywhere in the cocoon docs, because i've been looking

Re: [Cforms] Activating/Hiding whole repeaters?

2005-09-13 Thread Marc Salvetti
What about puting your repeater and whatever you'd like in a fd:group and then hiding the group ? Marc Florian Leinberger a écrit : Hi, I would like to display/hide a whole repeater (containing several widgets) in a cocoon form depending on which value is selected in a select-field above

Re: How to evaluate an xpath expression against a dom tree in flow ?

2005-09-12 Thread Marc Salvetti
the XPathAPI to navigate a DOM. eg: importClass(org.apache.xpath.XPathAPI); nl = XPathAPI.selectNodeList(document, sXpath); where sXpath could be something like xPath = //authorityLink[linkNumber=' + linkNum + ']; I don't know if this is what you're after but I hope it helps!! Regards Tony Marc

How to evaluate an xpath expression against a dom tree in flow ?

2005-09-09 Thread Marc Salvetti
Hello, I've been using flow with cforms for a while and the framework is great, but one thing that i found really uneasy is navigating in the dom tree with the dom api. For exemple, i often do things like : users =

Re: Pb cforms + bouton precedent

2005-09-08 Thread Marc Salvetti
Sylvain Wallez a écrit : Je vois le pb: lorsqu'on passe à un nouvel écran, le fd:group contenant la partie du formulaire que l'on vient de soumettre est mise dans l'état invisible. Outre le fait de cacher cette partie, cela a aussi pour effet de désactiver les fd:action de ce groupe, c'est

Re: Link: Project: www.GoPubMed.org

2005-09-01 Thread Marc Salvetti
Hi Tony, while you're at it, could you check if http://www.cfmekong.com is in the queue as well ? it's running cocoon 2.1.7, i've put a mail about it some 6 month ago but i think it's not on the list. Thanks, Marc Tony Collen a écrit : Andreas, I'm going to go through some livesites

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
True, i tried a few exemples and the first generation is really slow for just a hello world :-\ the good this is that the cocoon caching system seems to work fine with lazlo, so depending on how the pipes are designed and optimized for caching, this can remain a small problem. For me, the main

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Sebastien Arbogast a écrit : For me, the main difficulty i see is to have underlying logical documents that fit with both lazlo and html view. The problem will always be to match this or this lazlo feature (like window or layout) in html+css. Proably a lot of headaches here, but really worth

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Sebastien Arbogast a écrit : Yes but do you think it's really possible to design your logical documents to fit such different paradigms as the ones of HTML and Laszlo ? The main discrepancy I see is that an HTML page must be built once and for all (except if it uses AJAX to load data but it's

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Yes but if you do it that way, you don't need a RIA anymore, and using Laszlo is even worse than using anything else as your whole page has to be refreshed and in the case of Laszlo, recompiled. It's very important to understand that Laszlo-style RIA's and Cocoon-generated HTML pages use very

Re: Use cocoon pipeline result as cform input?

2005-08-29 Thread Marc Salvetti
hi, have a look at the forms block samples in the cocoon distrib, Marc Christofer Dutz a écrit : Hi, I am trying to bind a cforms form to an xml-result delivered by an internal cocoon pipeline. My first attempt (form.load(cocoon:/db/tablename/where.xml);) looked promising at fist, but

Re: Cocoon and OpenLaszlo

2005-08-29 Thread Marc Salvetti
Hello, I see it also like that, cocoon is a MVC framework that handles easily multiples V, why not using lazlo for at least one of the views of the webapp ? Marc Yves Vindevogel a écrit : Your 2 cents are worth a dollar (or a euro) Well, that's also how I see it. Cocoon is far better

Re: map:mount src=some.xmap makes cocoon.sendPage fail

2005-08-25 Thread Marc Salvetti
Hi, i think when you use sendPage(url), the url determine which sitemap it refers to cocoon://pipeline is in the main sitemap and cocoon:/pipeline is in the current sitemap hth, marc Antonio Fiol Bonnín a écrit : Hello, I have discovered that on Cocoon 2.1.7 (not tested on other

Re: idea: log utility

2005-08-21 Thread Marc Salvetti
vaguely remember setting a parameter somewhere that would enable log files to be rendered as xml. Has anybody else had this dream??? Regards, Tony Marc Salvetti wrote: Hello, it sounds a bit complex to me, what about a custom logGenerator who reads format from logkit.xconf, parse the logfile

Re: JXTemplate formatDate problem

2005-08-19 Thread Marc Salvetti
Hello, c:set var=now value=${java.util.Calendar.getInstance()}/ try c:set var=now value=${java.util.Calendar.getInstance().getTime()}/ Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: JXTemplate formatDate problem

2005-08-19 Thread Marc Salvetti
pattern=''anythingxsl:value-of select=$now//i18n:date Marc Frank Taffelt a écrit : Marc Salvetti wrote: Hello, c:set var=now value=${java.util.Calendar.getInstance()}/ try c:set var=now value=${java.util.Calendar.getInstance().getTime()}/ the new version also doesn't work: ?xml

Re: JXTemplate formatDate problem

2005-08-19 Thread Marc Salvetti
... or maybe better, format your date in the fowscript function that call your jx template, and make it available from the template with cocoon.sendPage(the-jx-pipe, {now : formattedDate}) Marc Frank Taffelt a écrit : Marc Salvetti wrote: Hello, c:set var=now value

Re: idea: log utility

2005-08-19 Thread Marc Salvetti
Hello, it sounds a bit complex to me, what about a custom logGenerator who reads format from logkit.xconf, parse the logfile as a string according to the format, and then generates a xml logFile ? I was thinking of creating such a component myself. Maybe it would be a good start to create the

Comment acceder au contexte authentication depuis le flowscript

2005-08-18 Thread Marc Salvetti
Bonjour, j'ai cette fonction dans mon script : function saveCartDoc(contextName, path, cartDoc){ var manager = cocoon.getComponent(Packages.org.apache.cocoon.webapps.authentication.AuthenticationManager.ROLE); try{ cocoon.log.debug(saving cartdoc to context + contextName + at

Re: Comment acceder au contexte authentication depuis le flowscript

2005-08-18 Thread Marc Salvetti
) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:843) ... 49 more Sylvain Wallez a écrit : Marc Salvetti wrote: Bonjour, j'ai cette fonction dans mon script : function saveCartDoc(contextName, path, cartDoc){ var manager = cocoon.getComponent

Re: Comment acceder au contexte authentication depuis le flowscript

2005-08-18 Thread Marc Salvetti
/ map:parameter name=context value=authentication/ /map:call /map:act /map:match Sylvain Wallez a écrit : Marc Salvetti wrote: Merci de ta réponse, voila la trace : Caused by: java.lang.NullPointerException

Re: Comment acceder au contexte authentication depuis le flowscript

2005-08-18 Thread Marc Salvetti
snip/ Hmm... en remontant la piste depuis setXML, on trouve que SessionContext.getState() renvoie null. Comment est-ce que tu arrive a voir ça ds la trace ??? Et ce state est n'est valué que dans DefaultAuthenticationManager.login(). J'imagine que cette fonction est appelée par la

Accessing the authentication context from flow

2005-08-18 Thread Marc Salvetti
Hello, i have a problem accessing the authentication context from flow. i have the following function in my flowscript : function saveCartDoc(contextName, path, cartDoc){ try{ cocoon.log.debug(saving cartdoc to context + contextName + at path + path); var contextMan =

Mail and continuations

2005-08-05 Thread Marc Salvetti
Hello, i'm trying to send mails that contains link with continuation-id, and there is 2 things i don't understand. First i tried the following link in my jx template : a href=continue.html?continuation-id=#{$cocoon/continuation/id}continue.html?continuation-id=#{$cocoon/continuation/id}/a I

Re: Mail and continuations

2005-08-05 Thread Marc Salvetti
Aurélien DEHAY a écrit : My choice was to put a confirmation field in the database, and put this field (randomly generated) instead of the continuation in the mail. Thus, the user can validate is account whenever he wants. And I've got no continuation left in memory. In my case i don't

Re: XSLT transformation

2005-08-03 Thread Marc Salvetti
Antony Grinyer a écrit : Thanks for the idea Mark - I tried this and it just displays the XML? Seems it's stopping at the map:serialize type=xml/ and not moving onto map:transform type=xslt src=style/xsl/containerslist.xsl/? Thanks, Ant -Original Message- From: Marc Salvetti

Re: Flowscript et Upload

2005-07-27 Thread Marc Salvetti
Pour cforms il y a cette javadoc : http://www.jdocs.com/cocoon/1.2.5.1/api/org/apache/cocoon/forms/formmodel/package-summary.html sinon pour l'upload j'avait fait ca il y a longtemps pour des photos, tu trouveras pe qq lignes a copier coller ici, mais je ne suis pas sur de la qualité de ce

Pb with cforms using the multipage technique

2005-07-22 Thread Marc Salvetti
Hello, i have a cform with a few pages and i noticed a problem if the user hit the browser back button on say page 2, and the form next button one page 1, the form is then submited, but since it's not submited by a submit widget (the next button is an action widget) form.getSubmitWidget()

Re: Advice on site design - really close

2005-07-19 Thread Marc Salvetti
Hello, for the aggregation pb, you can have a look to this article : http://www.cocooncenter.org/articles/stylefree.html and maybe this one will help also if you start a cocoon project : http://wiki.apache.org/cocoon/CocoonBestPractices For the application logic, it's usually recommended to

Re: JXTemplate - Incrementing value of variable in a loop

2005-07-12 Thread Marc Salvetti
Another way is to use i18n tranformer to format your date : i18n:date src-pattern=MM/dd/jx:out value=#{$cruise/@start}//i18n:date My guess is that if you use the pattern attribute with jx:formatddate, the locale attribute is probably ignored. Marc Johannes Becker a écrit : The

Matching problem

2005-07-08 Thread Marc Salvetti
Hello, i just noticed that foo/bar/fooo/baar doesn't match the pattern foo/**/*/* but match the pattern foo/**/* Is that a bug or normal behavior ? Best regards, Marc ___ Appel

Re: cforms problem when trying jx

2005-07-08 Thread Marc Salvetti
Hello, i had this kind of pb before because of the binding. either you are calling new Form(form-definition) in your flow where you are not supposed to or you use the handleForm function from the sample and didn't supplied a binding-uri hope this helps Marc Joose Vettenranta a écrit :

Re: Matching problem

2005-07-08 Thread Marc Salvetti
Honestly it also looks like a bug to me. I think the string is parsed form left to right where it should be parsed from right to left or sth like that ;) Anyway, i just changed my pattern to foo/bar/fooo:baar that workaround the problem :) Marc Martijn C. Vos a écrit : Marc Salvetti

What mean theses errors ?

2005-07-05 Thread Marc Salvetti
Hello, Do you know what these errors means? I don't know why, but Tomcat + Apache failed today between 18:20 - 18:25 GMT. I have the following errors in the log : [Loaded org.apache.log4j.spi.ThrowableInformation from file:/home/marc/public_html/WEB-INF/lib/log4j-1.2.8.jar] [Loaded

Re: Scheduling tasks

2005-06-24 Thread Marc Salvetti
if someone can complete my explanation, it would be great. Lionel Marc Salvetti wrote: Thanks lionel, but what about this cron job thing ? do i have to code a java class that implements some interface or is there a class to do this in the distrib ? In the example, the config seems

Re: Site icon display

2005-06-24 Thread Marc Salvetti
I just have this map:match pattern=*.ico map:read src=icons/{1}.ico/ /map:match and somehow, i didn't need any links in the html to make it works, i think the browser just look for it at the root of the domain and display it if it's found Marc Derek Hohls a écrit : Yup -

Re: Choix d'implementation

2005-06-21 Thread Marc Salvetti
Parce que si je rappelle index.html a partir du flow avec un redirectTo ca va matcher le pipe **.html de ma sitemap et tourner en rond. Ca impliquerai donc de changer dans la sitemap les matchers de .html vers .autrechose. A moins que j'ai tout faux ;) marc Sylvain Wallez a écrit : Marc

Choix d'implementation

2005-06-20 Thread Marc Salvetti
Bonjour, je dois installer sur toutes les pages de mon site un formulaire de login, remplacé par 'hello user toto' quand l'utilisateur est authentifié. Comme j'ai commencé a utiliser jx+cforms, je pense qu'il est mieux d'utiliser aussi jx aussi pour ce formulaire. Ma question est qq'un a t'il

Re: Scheduling tasks

2005-06-20 Thread Marc Salvetti
to lanch a pipe everyday ? Best regards, Marc Lionel Crine a écrit : Hi, In this example, the trigger will be launched everyday at 2 AM : cron0 0 2 * * ? */cron Here, every 30 mins : cron* */30 * * * ? */cron Hope that help Lionel Marc Salvetti wrote: Thanks, that's definitly what i need

  1   2   >