Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 14938 invoked from network); 17 Jun 2008 04:34:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 04:34:13 -0000 Received: (qmail 46482 invoked by uid 500); 17 Jun 2008 04:34:12 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 45890 invoked by uid 500); 17 Jun 2008 04:34:10 -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 45879 invoked by uid 99); 17 Jun 2008 04:34:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 21:34:10 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 04:33:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K8St0-0004cd-MC for users@myfaces.apache.org; Mon, 16 Jun 2008 21:33:38 -0700 Message-ID: <17877942.post@talk.nabble.com> Date: Mon, 16 Jun 2008 21:33:38 -0700 (PDT) From: Bhushan To: users@myfaces.apache.org Subject: Re: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bhushanbn@chn.dnb.co.in References: <17816107.post@talk.nabble.com> <9c1059490806160733g6a579f81wa4b8354cbe60e3c9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks Samba, I've tried with its working fine. Thanks, Bhushan saasira wrote: > > Use instead and you can > get > the attribute value in your actionListener by calling > event.getComponent().getAttributes().get("idparam"); > > I think trinidad is not processing the elements in case of > commandLinks, but it does process param tags in case of goLinks, if I > remember it correctly. > > You can even use target="#{pageFlowScope.idparam}"/> > and then retrieve in your bean as > RequestContext.getCurrentInstance().getPageFlowScope().get("idparam"); > > I think there is yet another way of sending values; > > with JSF 1.2 libraries, I think you can even write like this: > , and I read some where > that > trinidad's setActionListener is going to be deprecated as RI's > setPropertyActionListener tag addresses the same need. I don't know which > would be preferred by Trinidad Gurus > > > I hope this helps, > Samba > > > > On Fri, Jun 13, 2008 at 12:09 PM, Bhushan wrote: > >> >> Hi, >> >> I am using Trinidad 1.0.8 with my faces 1.1.5. when I am trying to pass >> the >> parameters to command link I am getting NullPointer Exceptions. I guss it >> the problem with f:param as it is not evaluating expression under >> tr:commnadLink. >> >> Sample code: >> > actionListener="#{pageManager.onMenuClick}"> >> >> >> >> >> >> >> public final String getParameterValue(String key) { >> (HttpServletRequest) >> >> request=(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); >> String[] parameterValues = (String[])request.getParameterMap().get(key); >> return (getParameterValues(key) != null ? getParameterValues(key)[0] : >> null); >> } >> >> >> Any work arrounds or suggestions? >> >> >> Thanks, >> Bhushan >> >> >> -- >> View this message in context: >> http://www.nabble.com/%3Cf%3Aparam-is-not-working-under-%3Ctr%3AcommandLink-in-Trinidad-1.0.8-%28JSF1.1%29-tp17816107p17816107.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > > -- > Regards... > Samba. > > -- View this message in context: http://www.nabble.com/%3Cf%3Aparam-is-not-working-under-%3Ctr%3AcommandLink-in-Trinidad-1.0.8-%28JSF1.1%29-tp17816107p17877942.html Sent from the MyFaces - Users mailing list archive at Nabble.com.