Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48425C329 for ; Wed, 9 May 2012 18:30:03 +0000 (UTC) Received: (qmail 98790 invoked by uid 500); 9 May 2012 18:30:02 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 98751 invoked by uid 500); 9 May 2012 18:30:02 -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 98742 invoked by uid 99); 9 May 2012 18:30:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 18:30:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.106.208.183] (HELO USMOMX1.usamobility.com) (12.106.208.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 18:29:56 +0000 X-ASG-Debug-ID: 1336588172-037711382316fab0001-K75g4G Received: from TXPL3MBX1.us.arch.com ([10.50.10.70]) by USMOMX1.usamobility.com with ESMTP id gYGwFVCxRRqITril for ; Wed, 09 May 2012 13:29:32 -0500 (CDT) X-Barracuda-Envelope-From: Lim.Hock-Chai@usamobility.com Received: from TXPL3MBX2.us.arch.com ([10.50.10.90]) by TXPL3MBX1.us.arch.com ([fe80::8c9c:1e26:63b6:bd31%11]) with mapi id 14.01.0355.002; Wed, 9 May 2012 13:29:32 -0500 From: Lim Hock-Chai To: MyFaces Discussion Subject: RE: commandlink not working in panelgrid Thread-Topic: commandlink not working in panelgrid X-ASG-Orig-Subj: RE: commandlink not working in panelgrid Thread-Index: Ac0t/0+BsJFukTrUReGDjjCgvN4UawAOd2yAAAoBuOA= Date: Wed, 9 May 2012 18:29:31 +0000 Message-ID: <5C1E97349B4DFE4796DF7B0AAF27200A51BE875F@txpl3mbx2.us.arch.com> References: <5C1E97349B4DFE4796DF7B0AAF27200A51BE8700@txpl3mbx2.us.arch.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.50.10.116] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.50.10.70] X-Barracuda-Start-Time: 1336588172 X-Barracuda-URL: http://12.106.208.183:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at usamobility.com X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=5.0 KILL_LEVEL=7.0 tests=BSF_SC0_MJ3711 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.96466 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_SC0_MJ3711 Custom Rule MJ3711 I tried both session and request scopes. Both failed to work. The thing i= s that the commandlink is showing on the page, which would mean that the re= ndered condition in the panelGroup or panelgrid is ok. It just that when I= click on the link that is inside the panelgroup/panelgrid, it does not wor= k. I even tried not using any rendered condition on the panelGroup/panelGr= id, the link still not working. Oddest thing. -----Original Message----- From: Shasi Mitra [mailto:shasimitra@yahoo.com]=20 Sent: Wednesday, May 09, 2012 1:12 PM To: MyFaces Discussion Subject: Re: commandlink not working in panelgrid Are u sure ur bean is in session scope? Befor the action event is fired, it= 's verified whether the grid is rendered or not. So if the bean is in reque= st scope, it returns False and therefore the link's action isn't fired.=20 Sent from my iPhone On May 9, 2012, at 9:57 PM, Lim Hock-Chai w= rote: > I'm currently using myfaces 1.1.9 for my web app. I'm having some proble= ms with commandlink not working correctly for me. It appears that when com= mandlink is inside of the panelgrid, it is not calling the method specified= in the action attr. But it works fine if I put it outside of the panelgri= d. Strange part is that I've had other jsp that have commandlink inside da= tatable and they work fine also. This is the first time I use it inside a = panelgrid. >=20 > See code below. The first commandlink is, which is not inside of panelgr= id, works fine. The 2nd commandlink is inside of panelgrid and it is not w= orking (not calling back-end bean method) >=20 > xmlns:jsp=3D"http://java.sun.com/JSP/Page" > xmlns:c=3D"http://java.sun.com/jsp/jstl/core" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:t=3D"http://myfaces.apache.org/tomahawk" > xmlns:a4j=3D"http://richfaces.org/a4j"> >=20 > > > >=20 > > > > > > >=20 > > rendered=3D"#{not empty sessionScope.MyAccountLoginType an= d > sessionScope.MyAccountLoginType=3D=3Dr= esources.LOGIN_TYPE_MY_ACCOUNT }"> > > > > > > > > > > =20