From adffaces-user-return-1023-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Mon Sep 25 19:46:34 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 36345 invoked from network); 25 Sep 2006 19:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 19:46:34 -0000 Received: (qmail 79360 invoked by uid 500); 25 Sep 2006 19:46:33 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 79342 invoked by uid 500); 25 Sep 2006 19:46:33 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 79333 invoked by uid 99); 25 Sep 2006 19:46:33 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 12:46:33 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=awiner@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=awiner@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.92.173 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.92.173] ([66.249.92.173:52697] helo=ug-out-1314.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id DD/20-13750-6F138154 for ; Mon, 25 Sep 2006 12:46:04 -0700 Received: by ug-out-1314.google.com with SMTP id y2so637387uge for ; Mon, 25 Sep 2006 12:45:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hcYiAV0RA0oe3ToPjj3wLYiUHaPSKV1tg3HkDHSIXFtzTpEMd0JtlagZZUDodNm8VPQVYbrqMUlzjmUBV3dJKKTYan1teI1CKCoRt7zcweTXh+yZGEN4XfEH+2iP2JzhvzKg2Bn9kL1worslFCev5NzYP/LttzxbH4ubrnpVB0I= Received: by 10.66.216.6 with SMTP id o6mr3710935ugg; Mon, 25 Sep 2006 12:45:15 -0700 (PDT) Received: by 10.67.99.17 with HTTP; Mon, 25 Sep 2006 12:45:14 -0700 (PDT) Message-ID: <6dac79b90609251245hc5f7f38lbe2862875a95153e@mail.gmail.com> Date: Mon, 25 Sep 2006 12:45:14 -0700 From: "Adam Winer" To: adffaces-user@incubator.apache.org Subject: Re: NullPointer when using dynamic actionListener type In-Reply-To: <8F9BA684796C2848A3DD79037C5F75BF0A843A@MOES0037.tcc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8F9BA684796C2848A3DD79037C5F75BF0A843A@MOES0037.tcc.local> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N tr:forEach only works with other tr: tags - not f:actionListener. In JSP 2.1 or in Facelets, you can use c:forEach with all tags, but by the nature of how tr:forEach works, it can't work across all tags like they can. -- Adam On 9/25/06, D=F6ring Markus wrote: > Hello, > i try to add to within . > The type of the actionListener is dynamic, so I use an EL-Expression. > When trinidad adds the actionListener the following exception is thrown: > > > > 16:25:30,154 ERROR [[jsp]] Servlet.service() for servlet jsp threw except= ion > java.lang.NullPointerException > at org.apache.myfaces.trinidad.component.UIXComponentBase.addFace= sListener(UIXComponentBase.java:969) > at org.apache.myfaces.trinidad.component.UIXCommand.addActionList= ener(UIXCommand.java:279) > at org.apache.myfaces.taglib.core.ActionListenerTag.doStartTag(Ac= tionListenerTag.java:83) > > > > > Here is some of my code: > > Test.jspx: > > > > > > > managedBean: > public class ManagedBean { > public List getActions() { > List out =3D new ArrayList(); > out.add("action1"); > out.add("action2"); > return out; > } > > public Map getActionMap() { > Map out =3D new HashMap()= ; > out.put("action1", Action1.class.getName()); > out.put("action2", Action2,class.getName()); > } > } > > When I use the code without the line everything works = fine, the buttons are rendered with the right text > > So what's going wrong here? Or is it me doing something wrong? > > Greetings > Markus > > PS. I'm using Trinidad M1, MyFaces 1.1.4 and JBoss 4.0.3SP1 with Tomcat 5= .5 >