Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 62808 invoked from network); 10 May 2010 08:48:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 08:48:05 -0000 Received: (qmail 36456 invoked by uid 500); 10 May 2010 08:48:04 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 36228 invoked by uid 500); 10 May 2010 08:48:03 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 36221 invoked by uid 99); 10 May 2010 08:48:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 08:48:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mwessendorf@gmail.com designates 74.125.82.181 as permitted sender) Received: from [74.125.82.181] (HELO mail-wy0-f181.google.com) (74.125.82.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 08:47:57 +0000 Received: by wyb36 with SMTP id 36so2016907wyb.12 for ; Mon, 10 May 2010 01:47:37 -0700 (PDT) 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=QRIpNWLU4/qI8LfvEe8ty3Y3zv58sYBO+1sSO/0LIbE=; b=cqUot09Jl6mFd3Y6SnPA5VNjuTpVfAhURyUCFONekAnf0UnbS7lug77nuR6Rd0h3re l/M9b6qs0sU2mgxqI/zMmdhA9XydjreDg4FBg8LbHovmIegceI93yaK5rUSAafMFrTIH aJoON58Op2E9auIN2Yd8QgODIYJH2CWip2lzE= 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=YO4ApOEqk2LTXRYF/oQYlAmjKGVi6joKEIx8nfiWKDsjvstQkSXIdFty1IMeN125BP eQXfXyAHHythq6octwPM56zV0T+r1cAz1y6bc2EzekNyz8lKXEd20VRmApOtqA1eyJVL NQGWDBGCpahPHq/7QSy4VUP3VCnCI0Q1vntjk= MIME-Version: 1.0 Received: by 10.216.85.140 with SMTP id u12mr2194869wee.78.1273481256844; Mon, 10 May 2010 01:47:36 -0700 (PDT) Sender: mwessendorf@gmail.com Received: by 10.216.23.199 with HTTP; Mon, 10 May 2010 01:47:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 May 2010 10:47:36 +0200 X-Google-Sender-Auth: x8tkT3YkIaaqawxiSa4Jm1BTqzA Message-ID: Subject: Re: [GSOC] New Form Elements From: Matthias Wessendorf To: MyFaces Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org +1 On Thu, May 6, 2010 at 5:43 PM, Mike Kienenberger wrot= e: > Sounds a lot like the tomahawk sandbox subform and tomahawk UICommand > components. =A0You can specify an "actionFor" attribute on the UICommand > components to point at a specific subform. > > I wonder if some of the design from subform can be reused. > > On Thu, May 6, 2010 at 10:39 AM, Werner Punz wrot= e: >> Yes they will definitely need that attribute especially if they are outs= ide >> of a form. Also the components have to throw an error if the attribute i= s >> not set and if they are not hosted inside of a form. >> >> >> Werner >> >> >> >> >> Am 06.05.10 16:25, schrieb Kito Mann: >>> >>> On Thu, May 6, 2010 at 4:19 AM, Werner Punz >> > wrote: >>> >>> =A0 =A02 Possibilities: >>> =A0 =A0First, via custom lifecycle, extend the standard elements in a w= ay >>> =A0 =A0that they refer to a form element and a first step collect those >>> =A0 =A0elements and a second step at, form processing, processes those >>> =A0 =A0external elements within the bounds of a form. >>> =A0 =A0This applies to the apply request values and validation phases, = or >>> =A0 =A0probably. >>> >>> =A0 =A0Second possibility: >>> >>> =A0 =A0But also you might get it easier (second option), >>> =A0 =A0maybe you wont even need a second lifecycle if you can tackle th= e >>> =A0 =A0problem via JSF2 system events on the controls themselves. >>> =A0 =A0(you can set direct event listeners for various phases on the co= ntrols >>> =A0 =A0so that they will be processed), this would be even faster since= the >>> =A0 =A0event handling mechanisms would do the bookkeeping for you which= you >>> =A0 =A0in the other case would have to do yourself. >>> >>> >>> Using component system events should work fine -- it's how >>> and can retarget themselves to th= e >>> component. I think the components may need a new "forForm" >>> attribute, though, for cases when there's more than one form on the pag= e. >>> >>> >>> =A0 =A0This is probably the biggest problem with JSF and HTML5 (I did n= ot >>> =A0 =A0know this was possible, since I only follow the html 5 developme= nt >>> =A0 =A0via blogs and articles), I would recommend also to raise a spec >>> =A0 =A0issue there regarding this, so that we might, special handling f= or >>> =A0 =A0the official spec so that no impl has to cook its own mechnanism= in >>> =A0 =A0the long run. >>> >>> =A0 =A0https://javaserverfaces-spec-public.dev.java.net/servlets/Projec= tIssues >>> >>> >>> =A0 =A0Werner >>> >>> >>> >>> =A0 =A0Am 05.05.10 20:01, schrieb Ali Ok: >>> >>> =A0 =A0 =A0 =A0Hi all, >>> =A0 =A0 =A0 =A0I've been working on my GSOC project (prototyping curren= tly). I >>> =A0 =A0 =A0 =A0want to >>> =A0 =A0 =A0 =A0ask you something. >>> >>> =A0 =A0 =A0 =A0With HTML5, form elements does not have to be children o= f a form. >>> Of >>> =A0 =A0 =A0 =A0course, that is the preferred way, but you can set the "= form" >>> =A0 =A0 =A0 =A0attribute >>> =A0 =A0 =A0 =A0of the and that will be posted when the = owner >>> =A0 =A0 =A0 =A0form is >>> =A0 =A0 =A0 =A0submitted.[0] >>> =A0 =A0 =A0 =A0This also applies to submit buttons, in a similar way. Y= ou can >>> =A0 =A0 =A0 =A0define >>> =A0 =A0 =A0 =A0"form" attribute of the submit button, and it will submi= t the >>> =A0 =A0 =A0 =A0defined >>> =A0 =A0 =A0 =A0form -not necessarily its parent- when it is clicked.[1] >>> >>> =A0 =A0 =A0 =A0So, I wonder if this can be applied in JSF side. AFAIK c= urrently, a >>> =A0 =A0 =A0 =A0commandButton needs to be under a . >>> =A0 =A0 =A0 =A0This is also about serverside component tree, and maybe = state >>> =A0 =A0 =A0 =A0saving. >>> >>> =A0 =A0 =A0 =A0I couldn't set up much in my head. >>> >>> =A0 =A0 =A0 =A0What do you think? How can we use this new features? How= to >>> =A0 =A0 =A0 =A0model them? >>> >>> =A0 =A0 =A0 =A0Thanks, >>> =A0 =A0 =A0 =A0Ali >>> >>> =A0 =A0 =A0 =A0[0] >>> >>> =A0http://www.whatwg.org/specs/web-apps/current-work/multipage/associat= ion-of-controls-and-forms.html#attr-fae-form >>> =A0 =A0 =A0 =A0[1] >>> >>> =A0http://www.whatwg.org/specs/web-apps/current-work/multipage/number-s= tate.html#submit-button-state >>> >>> =A0 >>> >>> =A0 =A0 =A0 =A0-- >>> =A0 =A0 =A0 =A0My Blog: http://blog.aliok.com.tr >>> =A0 =A0 =A0 =A0Twitter: http://twitter.com/aliok_tr >>> >>> >>> >>> >> >> >> > --=20 Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf