Return-Path: Delivered-To: apmail-incubator-click-user-archive@minotaur.apache.org Received: (qmail 86474 invoked from network); 29 Jan 2009 20:07:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2009 20:07:13 -0000 Received: (qmail 2684 invoked by uid 500); 29 Jan 2009 20:07:13 -0000 Delivered-To: apmail-incubator-click-user-archive@incubator.apache.org Received: (qmail 2669 invoked by uid 500); 29 Jan 2009 20:07:13 -0000 Mailing-List: contact click-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-user@incubator.apache.org Delivered-To: mailing list click-user@incubator.apache.org Received: (qmail 2658 invoked by uid 99); 29 Jan 2009 20:07:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2009 12:07:13 -0800 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: domain of sabob1@gmail.com designates 74.125.78.144 as permitted sender) Received: from [74.125.78.144] (HELO ey-out-1920.google.com) (74.125.78.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2009 20:07:05 +0000 Received: by ey-out-1920.google.com with SMTP id 5so22004eyb.54 for ; Thu, 29 Jan 2009 12:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=G48l69/lAHwQ8AlGXNQAWKuiUREIgUZKbBLMwXH1w6c=; b=s+PLI39TQhowr9nRtOBJkR7W5+h9P2VN8pY8svYSgFHDLFtBXquxTi47kTS5vnG8F2 hxivA34LSDzvWGpMq73EkzCT64vDgLzVMn6n3Fg+32FsYOpjY7stMNflpGXZnpU+Qxh0 RJcBGR4kbr1gYZx1sro5VjpsANTtgWjDz7Gtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=bx5sRYo+Yzqtt/iT6tMOjAjH7OMVdqYABjtNpz/2pXyvUCE4bWXHgNDHaI4yv6QMjz f5oXD/cjmXUrqjxe3DZ2luCtA/bxZ/0l8nq0JVfQPuEnAtiUyn9361POjHRMYAKCmM3m 5tvb5/EsFsB9JJBBPKhsekBvRs7ccMHYuoBY0= Received: by 10.210.28.4 with SMTP id b4mr490928ebb.120.1233259603965; Thu, 29 Jan 2009 12:06:43 -0800 (PST) Received: from ?10.0.0.100? (dsl-240-159-154.telkomadsl.co.za [41.240.159.154]) by mx.google.com with ESMTPS id 5sm273329eyh.51.2009.01.29.12.06.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Jan 2009 12:06:42 -0800 (PST) Message-ID: <49820C4A.7080904@gmail.com> Date: Thu, 29 Jan 2009 22:06:34 +0200 From: Bob Schellink User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: click-user@incubator.apache.org Subject: Re: Statefull pages with ActionLinks on References: <4981DAD3.3070101@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Victor Fran�a wrote: > public FNetSelect sltClientGroup =new FNetSelect("sltClientGroup", I think the problem is that sltClientGroup is declared as "public". Click handles public controls in a special way in that it automatically adds them directly to your Page. Meaning when the Page controls are processed, the Select will also be processed (which internally invokes bindRequestValue). This would nullify your Select value. The fix should be easy, just declare your Select as "private" and it won't be added directly to the Page controls. With this change Select will only have its value bound if the Form is actually submitted. Btw you should probably declare your controls as private unless you want them added to the Page's controls. See the following section for details on this feature: http://incubator.apache.org/click/docs/configuration.html#application-autobinding > It doesn't matter the content of the constructor, as it will be > called just on the first time the Page is requested, isn't? Yep this is correct. :) kind regards bob