Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 91260 invoked from network); 11 Aug 2004 17:03:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 17:03:45 -0000 Received: (qmail 25479 invoked by uid 500); 11 Aug 2004 17:03:32 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 25439 invoked by uid 500); 11 Aug 2004 17:03:29 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 25426 invoked by uid 99); 11 Aug 2004 17:03:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [165.98.147.95] (HELO ags01.agsoftware.dnsalias.com) (165.98.147.95) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 11 Aug 2004 10:03:26 -0700 Received: from ags01.agsoftware.dnsalias.com (localhost.localdomain [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.10) with ESMTP id i7BH3NcU010216 for ; Wed, 11 Aug 2004 11:03:23 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.10/Submit) id i7BH3NQQ010214; Wed, 11 Aug 2004 11:03:23 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agssa.net using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo); by ags01.agsoftware.dnsalias.com with HTTP; Wed, 11 Aug 2004 11:03:23 -0600 (CST) Message-ID: <40414.10.0.0.5.1092243803.squirrel@10.0.0.5> In-Reply-To: <000e01c47fc2$abc7d680$9633a8c0@rennes.jouve.fr> References: <000a01c47faa$fb57ce20$9633a8c0@rennes.jouve.fr> <411A275D.903@rennes.jouve.fr> <001601c47fab$e7e164e0$9633a8c0@rennes.jouve.fr> <411A291D.7040609@rennes.jouve.fr> <000a01c47fb4$ee5c8c60$9633a8c0@rennes.jouve.fr> <40274.10.0.0.5.1092240105.squirrel@10.0.0.5> <002501c47fbd$47f5e3e0$9633a8c0@rennes.jouve.fr> <40362.10.0.0.5.1092241343.squirrel@10.0.0.5> <000e01c47fc2$abc7d680$9633a8c0@rennes.jouve.fr> Date: Wed, 11 Aug 2004 11:03:23 -0600 (CST) Subject: Re: jx:choose don't work From: "Antonio Gallardo" To: users@cocoon.apache.org User-Agent: SquirrelMail/1.4.3a-0.f1.1 X-Mailer: SquirrelMail/1.4.3a-0.f1.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Noureddine BEKRAR dijo: > Antonio, > > this is a complete XSP page that i tested, it's perfom the two actions > admin and not admin, is any thing wrong in it? > > the value of value="#{getAttribute($session,'user-role-id')}" is right. How we can use XSP and JXTemplate Generator? AFAIK, the only idea to use it in that way is: a pipeline that use a XSP generator and output and XML with JX Template info that is the input of another pipeline. Is this your case? But if you are using just the xsp generator (aka. serverpages) then you cannot use JX syntax at all inside the code. Best Regards, Antonio Gallardo. > > > > > ----- Original Message ----- > From: "Antonio Gallardo" > To: > Sent: Wednesday, August 11, 2004 6:22 PM > Subject: Re: jx:choose don't work > > >> OK. >> >> Can you check what is the value for: >> >> value="#{getAttribute($session,'user-role-id')}" >> >> Also, please try to not mix between #{$...} and ${...} syntax. >> >> In the below case you use for set one syntax and for test another >> syntax. >> I am not telling this is why both statements are executed. If both >> statements are in fact executed, then there is a bug that need to be >> fixed. >> >> Can you provide a test case of that? >> >> Best Regards, >> >> Antonio Gallardo >> >> >> >> Noureddine BEKRAR dijo: >> > oh Sorry, >> > i did a mistake when i wrote the email, >> > >> > My code is like you say but the two actions are performed. >> > >> > > > >> > value="#{getAttribute($session,'user-role-id')}"/> >> > >> > >> > >> > >> > >> > >> > >> > do something >> > >> > >> > >> > do other thing >> > >> > >> > >> > >> > >> > >> > >> > >> > ----- Original Message ----- >> > From: "Antonio Gallardo" >> > To: >> > Sent: Wednesday, August 11, 2004 6:01 PM >> > Subject: Re: jx:choose don't work >> > >> > >> >> Noureddine BEKRAR dijo: >> >> > Hi all, >> >> > >> >> > I have in my template page this jxtemplate code, the problem is >> that >> >> the >> > " >> >> > do some thing " action and " do other thing " action are the two >> >> > performed. >> >> > >> >> > > >> > >> >> > value="#{getAttribute($session,'user-role-id')}"/> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >> >> Here inser the conditional >> >> > >> >> > >> >> > >> >> > do something >> >> >> >> ^^^^^ >> >> |||| -> This line is always executed (it is outside the >> "jx:choose") >> >> > >> >> > >> >> > >> >> > do other thing >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >> >> Best Regards, >> >> >> >> Antonio Gallardo >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> >> >> >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> > For additional commands, e-mail: users-help@cocoon.apache.org >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org