Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 21870 invoked from network); 12 Jan 2007 21:10:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 21:10:26 -0000 Received: (qmail 63872 invoked by uid 500); 12 Jan 2007 21:10:28 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 63838 invoked by uid 500); 12 Jan 2007 21:10:28 -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 63827 invoked by uid 99); 12 Jan 2007 21:10:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [70.169.228.48] (HELO iris.jak.com) (70.169.228.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 13:10:26 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message Subject: RE: [Tobago] Problems with Tobago.reloadComponent with onclick X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Fri, 12 Jan 2007 13:09:12 -0800 Message-ID: <5E743DCAEFD0C54AACA4612DAB9DF6B71312FE@iris.jak.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Tobago] Problems with Tobago.reloadComponent with onclick Thread-Index: Acc2icOjnLt6WLlmQfKFUfsmQPlb0wAA8Nfg From: "John" To: "MyFaces Discussion" X-Virus-Checked: Checked by ClamAV on apache.org Hi Volker, There was already a Panel surrounding the tx:in, so I modified as follows, and still get the error. onclick=3D"Tobago.reloadComponent(mainPage:quarantineInfoPanel, = '@autoId') The source from the page expands it as so: onclick=3D"Tobago.reloadComponent('mainPage:quarantineInfoPanel', 'mainPage:quarantineCmdRefresh')" What is the preferred way to add this to my toolBarCommand? -----Original Message----- From: Volker Weber [mailto:weber.volker@googlemail.com]=20 Sent: Friday, January 12, 2007 12:40 PM To: MyFaces Discussion Subject: Re: [Tobago] Problems with Tobago.reloadComponent with onclick Hi John, which version of tobago? the onclick=3D"Tobago.reloadComponent(, '@autoId')"/> should work (afaik), but is not the intended way to code ajax reload (this was a interim solution). anyway, the 'messageCount' is not a valid clientId, and tc:in is not ajax reloadable. the clientId is build from ids of namingcontainers, at least tc:page, and the id of the component, so a valid clientId has at last on colon. to reload the content of a tx:in you can surround it by a tc:panel e.g (in the intended way): see the colon before 'page:panel' to make the clientId absolute. regards, Volker 2007/1/12, John : > > > When I use the onclick as follows (per a previous message from=20 > Volker), I get the following error in IE. > > image=3D"images/view-refresh.jpg" tip=3D"Refresh list of quarantined messages" > id=3D"quarantineCmdRefresh"=20 > onclick=3D"Tobago.reloadComponent('messageCount', > '@autoId')"/> > > > Line: 582 > Char: 7 > Error: Object doesn't support this property or method Code:0 > > > If I remove the onclick part it works fine (but of course I can't use the > AJAX dynamic updating of my tx:in component > > Thanks, > John