Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 20575 invoked from network); 9 Nov 2010 15:48:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 15:48:12 -0000 Received: (qmail 33161 invoked by uid 500); 9 Nov 2010 15:48:40 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 32403 invoked by uid 500); 9 Nov 2010 15:48:40 -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 32020 invoked by uid 99); 9 Nov 2010 15:48:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 15:48:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sethfromaustria@gmail.com designates 209.85.161.181 as permitted sender) Received: from [209.85.161.181] (HELO mail-gx0-f181.google.com) (209.85.161.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 15:48:34 +0000 Received: by gxk22 with SMTP id 22so2305944gxk.12 for ; Tue, 09 Nov 2010 07:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=b/b4X++BiZZ0P7h1SjNhhBMVKZePeyV+JXZFHqbM2G8=; b=rKPHAy/fFZzPGusye2mlftJpp8vEIAml/zlMoEvXHbypmghPu/Kcx/jBPhkByVe1BO 94n+TurcRFHtkKiggPgU/Eyg/CEimN/bkq85y09GVJAH/snMX9akQT5/3jwVPdRuBEfm onz2ShmzZBP25khmlYwlflyoKq436cOgjAVxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=q7Zj63873Dsb1Fq4LGuzPcxQhoxyWV5yPQkDMxCSjC/w7ZjM2soVEya8/aw9WkVw4F 0c4zmiKHp3mQ2xHNtSMAZ/GmtJ0k3+i2+xz6s17eqYFva4TdcS7k5amctjT/Qykgdgtt smv5lc5PruGVPYfdcvmVXl/neFUONUyueIPt4= MIME-Version: 1.0 Received: by 10.216.191.210 with SMTP id g60mr7035151wen.5.1289317497374; Tue, 09 Nov 2010 07:44:57 -0800 (PST) Sender: sethfromaustria@gmail.com Received: by 10.216.60.81 with HTTP; Tue, 9 Nov 2010 07:44:52 -0800 (PST) In-Reply-To: <30168428.post@talk.nabble.com> References: <30067392.post@talk.nabble.com> <30129953.post@talk.nabble.com> <30168428.post@talk.nabble.com> Date: Tue, 9 Nov 2010 16:44:52 +0100 X-Google-Sender-Auth: 4aZXOb2aybaIRLtZGJeGWzdwPag Message-ID: Subject: Re: composite components: optional method-expression-attributes From: Jakob Korherr To: MyFaces Discussion Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Thomas, OK, thanks. Now it's more clear to me what you're trying to do. Something like this should work: Regards, Jakob 2010/11/9 Thomas M=C3=B6ller : > > Hi Jakob, > > I wanted to design the following composite component (a panel with two > buttons): > > > > where "#{myBean.button1}" and "#{myBean.button2}" are instances of > SimpleModel. For the button =C2=A0expression should apply: If it evaluate= s to > null the button is disabled, if not SimpleModel.myaction() will be execut= ed. > > Therefore I wanted to express with the following composite component > attribute declaration: > > > =C2=A0 =C2=A0 targets=3D"button" /> > > > that the attribute "myaction" of the instance maps to the action of the > button. I guess that it does not work even with JSF 2.1 because it is a > nested attribute declaration. > -- > View this message in context: http://old.nabble.com/composite-components%= 3A-optional-method-expression-attributes-tp30067392p30168428.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > --=20 Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at