Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 34001 invoked from network); 15 May 2008 07:47:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 07:47:36 -0000 Received: (qmail 72968 invoked by uid 500); 15 May 2008 07:47:38 -0000 Mailing-List: contact users-fr-help@cocoon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users-fr@cocoon.apache.org Delivered-To: mailing list users-fr@cocoon.apache.org Received: (qmail 72957 invoked by uid 99); 15 May 2008 07:47:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 00:47:38 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of salvetti.marc@gmail.com designates 209.85.142.185 as permitted sender) Received: from [209.85.142.185] (HELO ti-out-0910.google.com) (209.85.142.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 07:46:49 +0000 Received: by ti-out-0910.google.com with SMTP id j3so177607tid.8 for ; Thu, 15 May 2008 00:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=tSuLLlTNq3e+9g0r8wsNVSOnDtOwG6g7uo058zq1zSQ=; b=ZW0Eo62cldKW+xEqZ4cn6zkYRh4YY6Tx7d6FOu3CnSYEaOXEg0Ij9spgv1I0gagHGoI0qo2+8HmQGgK2qKyK9LLusdyPXCdJ1JQn2MnDGHkf+SUxiP6A8nE8oMjdf9DQXVrDsRvqs916u8KwTyfuFjHI5QZxVUdg6nYmGyMJlfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=nmY80/zLb8inBVNqmxP+jLCLHol9Pha97KoeeJUupOq8riPtX7U1qKNa8oPcUzXbeft2Ina2aJmS7IE+A/UTfU1hchHA2Dp5/sgoapkEGJ4VUQbyW7+kQhhzBJCfyq52bYa7Tv4fiP4djnwX8B17phCLIdaqfjVBkMz+kK3wiXw= Received: by 10.110.49.6 with SMTP id w6mr269918tiw.6.1210837622745; Thu, 15 May 2008 00:47:02 -0700 (PDT) Received: by 10.110.84.4 with HTTP; Thu, 15 May 2008 00:47:02 -0700 (PDT) Message-ID: <15786ae80805150047k5ab85b91v496c0d99a89ed232@mail.gmail.com> Date: Thu, 15 May 2008 14:47:02 +0700 From: "Marc Salvetti" To: users-fr@cocoon.apache.org Subject: Re: Validation de formulaire Ajax In-Reply-To: <1210835537.482be25144694@imp.free.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8936_19745783.1210837622810" References: <1210835537.482be25144694@imp.free.fr> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8936_19745783.1210837622810 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Si mon souvenir est bon, normalement dans le html tu devrais voir sur tes actions ajax qqchose du genre onclick=3D"submit_form(this)" (ajout=E9 automatiquement par le block forms sur les widgets) qui va envoyer une requete xmlhttprequest, laquelle doit etre ensuite traitee au niveau de la sitemap de facon a renvoyer uniquement les elements a mettre a jour (les bu:replace) en gros, dans ton pipe final il faut qq chose comme ... ... il faut aussi preciser au niveau des widgets qu'ils doivent envoyer le form sur le onchange ce qui doit creer les onclick=3Dform_submit : Le 15 mai 2008 14:12, a =E9crit : > Bonjour, > > Merci pour la r=E9ponse. > Oui, j'ai bien un pipe qui traite =E7a : > > > > > > J'ai essay=E9 celui que tu me conseilles et l=E0, les actions Ajax ne > fonctionnent > plus. je crois comprendre : > > Mes actions Ajax d=E9clenchent des POST du genre : > http://serveur/appli/%5Bobject%20HTMLInputElement%5D > > Cela ne pose pas de probl=E8me pour les actions Ajax (ajout de ligne de > repeater, > qui fonctionne), mais en pose lors de la validation globale du formulaire= . > > Apr=E8s m'=EAtre renseign=E9 sur ce type de probl=E8me, il semblerait que= l'action > du > formulaire ne soit pas appel=E9e, car non "reconnue". Et je ne sais pas > pourquoi. > Et donc, ton pipe n'est pas ex=E9cut=E9... > > Par contre les POST "manuels" continue.html fonctionnent bien, ce qui veu= t > dire > que ton pipe est efficace, le formulaire est valid=E9 et le sendPage bien > ex=E9cut=E9. > > Reste =E0 faire en sorte que les POST appellent bien l'action associ=E9e = au > formulaire. > > Une id=E9e ? > > Andr=E9 Davignon > > > > Le 15/05/2008 06:20, > Marc Salvetti (par Internet, d=E9p=F4t > users-fr-return-2058-andre.davignon=3Dequipement.gouv.fr@cocoon.apache.or= g) > a > =E9crit : > > Bonjour Andr=E9, > > > > 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 : > > > > > > type=3D"hidden"/> > value=3D"#{$cocoon/continuation/id}"/> > > > > et dans la sitemap > > > > > > > continuation=3D"{request-param:continuation-id}"/> > > > > > > Marc > > > > > > --------------------------------------------------------------------- > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org > Autres commandes : mailto:users-fr-help@cocoon.apache.org > > ------=_Part_8936_19745783.1210837622810--