Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 66133 invoked from network); 5 Sep 2007 19:10:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 19:10:44 -0000 Received: (qmail 73387 invoked by uid 500); 5 Sep 2007 19:10:34 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 73354 invoked by uid 500); 5 Sep 2007 19:10:34 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 73343 invoked by uid 99); 5 Sep 2007 19:10:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 12:10:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.46.255.22] (HELO viefep12-int.chello.at) (213.46.255.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 19:10:17 +0000 Received: from [192.168.0.4] (really [84.113.196.60]) by viefep12-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20070905190953.LJXQ16800.viefep12-int.chello.at@[192.168.0.4]> for ; Wed, 5 Sep 2007 21:09:53 +0200 Subject: Re: If in myFaces/Tomahwak From: simon To: MyFaces Discussion In-Reply-To: <2bd5ed640709051023y1a57de07n41b6b726ff3e61ae@mail.gmail.com> References: <2bd5ed640709050800y72a9c4c2m3af1a7459388d67b@mail.gmail.com> <8f985b960709050852r717ae8fbk710b45494212b731@mail.gmail.com> <2bd5ed640709050913u39fd9986q335dfa742050717@mail.gmail.com> <8f985b960709050950n283db758yfa9a0e6216981d55@mail.gmail.com> <2bd5ed640709051023y1a57de07n41b6b726ff3e61ae@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Wed, 05 Sep 2007 21:09:08 +0200 Message-Id: <1189019348.6105.5.camel@simon-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org No, there is no separate tag like logic:equal. You need to use the rendered attribute as Mike described. Note that the rendered attribute is a normal EL expression, which can be quite complex. An EL expression can test things for equality etc. See a JSF manual or the specification for what is possible in an EL expression. On Wed, 2007-09-05 at 11:23 -0600, daniel ccss wrote: > Thanks!!... But, there are no if components like the logic:equal o > logic:notPresent?? in struts > > On 9/5/07, Mike Kienenberger wrote: > > > > > > > > > > > > > > > On 9/5/07, daniel ccss wrote: > > Can you give some example code, another way? > > > > > > On 9/5/07, Mike Kienenberger < mkienenb@gmail.com> wrote: > > > Generally, you do this with the rendered attribute of the > component. > > > > > > If you want to group a bunch of components, use a > > > > > > > > > On 9/5/07, daniel ccss wrote: > > > > Hi all, > > > > > > > > I have one question, how can I do an IF in a JSP wit > myFaces/Tomahawk? > > In > > > > struts I used logic:equal or logic:notEqual, which is > the tag in > > > > myFaces/Tomahawk to do that, I donĀ“t want to use this: < > % if(...)... {%> > > <% > > > > else(...)... {%> > > > > > > > > thanks!!! > > > > > > > > > > > >