Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 23345 invoked from network); 19 Apr 2010 17:37:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 17:37:28 -0000 Received: (qmail 84818 invoked by uid 500); 19 Apr 2010 17:37:27 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 84782 invoked by uid 500); 19 Apr 2010 17:37:27 -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 84775 invoked by uid 99); 19 Apr 2010 17:37:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 17:37:27 +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 andrew.rw.robinson@gmail.com designates 209.85.160.181 as permitted sender) Received: from [209.85.160.181] (HELO mail-gy0-f181.google.com) (209.85.160.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 17:37:22 +0000 Received: by gyg8 with SMTP id 8so2992947gyg.12 for ; Mon, 19 Apr 2010 10:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=KRhrKcTPviDJYqCI8BKWuo1kmkFeI69Nxoi6+2hQauY=; b=CGfX9nkhWMO7mfjOjQLimYpZA589yvVCkzNmQn8TLOexecDiGor3zk0iSdG959NuiJ 36adhDruTmZxdMBQijQWikFaQir488AqYioVHp9rp3PmRRhcD9oJUZm7Xn+eRIYp5Rcj DKLLc2iZNWNNc7sL1KMIroLzS9EIbzOwOMpgw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UvL7D6L3LNRCEDfge0Z0/09C0KgBkiuBX/uoGEK8ri86IQwTqSi6ajHG+d/IY8gHxo XlTwlxORCwuCGMWF9r+DP8qdo3QwgTkZ6hrASPmygwmeVgKrEenI5K+tf2FUalomMjbn V5W6kkX0ffKTDIZnBKUY9mxP0kdDuDMSt4cjM= MIME-Version: 1.0 Received: by 10.150.198.9 with HTTP; Mon, 19 Apr 2010 10:37:01 -0700 (PDT) In-Reply-To: References: <4BBC97BD.10507@oracle.com> <4BBF3675.4000904@oracle.com> Date: Mon, 19 Apr 2010 11:37:01 -0600 Received: by 10.150.13.20 with SMTP id 20mr6249132ybm.170.1271698621311; Mon, 19 Apr 2010 10:37:01 -0700 (PDT) Message-ID: Subject: Re: [Trinidad 2] AJAX branch ready for testing From: Andrew Robinson 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 _ajaxOldDomElements is code in Page.js, this looks like a bug in Trinidad that needs to be fixed On Fri, Apr 9, 2010 at 8:52 AM, Matthias Wessendorf wro= te: > looks like the 2.0.1 are just labeled as "Mojarra 2.0.2 (SNAPSHOT 2009120= 4)" > > I now updated the pom to "2.0.2" and got this log: > "INFO: Initializing Mojarra 2.0.2 (FCS b10) " > > But the error is the same on the "clientBehaviorHolder.xhtml" page > > -Matthias > > On Fri, Apr 9, 2010 at 4:33 PM, Matthias Wessendorf w= rote: >> eh, funny. >> >> the pom is actually configured with "2.0.1". >> >> Something is going wrong here :-) >> >> On Fri, Apr 9, 2010 at 4:15 PM, Max Starets wro= te: >>> Matthias, >>> >>> Are you getting the same results with Mojarra 2.0.1? >>> >>> Max >>> >>> Matthias Wessendorf wrote: >>> >>> hi, >>> >>> I gave it a quick try. Here are my results: >>> >>> Page: >>> http://localhost:8080/trinidad-demo/faces/demos/clientBehaviorHolder.xh= tml >>> >>> JSF_RI (Mojarra 2.0.2 (SNAPSHOT 20091204)) results: >>> >>> I entered some text and clicked "submit via JSF Ajax" >>> >>> Got this (in an alert JS box): >>> httpError: The Http Transport returned a 0 status code. =A0This is >>> usually the result of mixing ajax and full requests. =A0This is usually >>> undesired, for both performance and data integrity reasons. >>> >>> second click on the same button I got this JS error. >>> >>> mojarra is not defined >>> [Break on this error] var func =3D new Function("event", handler); >>> >>> =3D=3D=3D> the "submit" button works. >>> >>> MyFaces 2.0.0-SNAPHOT results: >>> (using snapshot since the ViewExpiredException is gone in latest snapsh= ot ) >>> >>> * "submit" button gives me this ALERT() box: >>> "TypeError: this._ajaxOldDomElements is null" >>> >>> followed by this: >>> "malformedXML--" >>> >>> * Submit via JSF Ajax: >>> >>> I get this alert() BOX: >>> "httpError-httpError-Request failed" >>> >>> >>> Are there any other pages where I can test the new functionality ? >>> >>> -Matthias >>> >>> >>> On Wed, Apr 7, 2010 at 4:33 PM, Max Starets wr= ote: >>> >>> >>> Just a few minor additions - >>> - PartialViewContext.isAjaxRequest() will be returning true for the req= uests >>> sent with jsf ajax >>> as well as the legacy "partialSubmit=3Dtrue" requests. >>> - Trinidad's partial triggers will be honored for the jsf ajax requests= . >>> However, this will currently work only with execute=3D"@all". Once we s= tart >>> adding trigger listeners >>> during the PostRestoreView event processing, instead of decode, this >>> limitation will go away. >>> >>> Max >>> >>> >>> Andrew Robinson wrote: >>> >>> >>> Well after a bit of work, the JSF2 AJAX branch is ready for testing to >>> see if we want to merge it into the trunk. >>> >>> Branch: >>> https://svn.apache.org/repos/asf/myfaces/trinidad/branches/jsf2_ajax.3 >>> >>> Details: >>> - jsf.ajax.request used to submit PPR requests from the request queue >>> - server serves JSF2 payload, differing if an IFRAME submission is >>> detected for Trinidad to send down script libraries >>> - iframe processing through legacy code, but updated to use a valid JSF= 2 >>> payload >>> - iframe still sends Tr-XHR-Message to let the server know its a legacy >>> request >>> - legacy request supports DOM replacement but none of the new >>> functionality of JSF2 (attribute updates for example) >>> - TrPage integrated with JSF2 events to correctly broadcast DOM change >>> notifications and restore focus >>> - If users find errors in the jsf.js libraries, setting the >>> _useJsfBuiltInAjaxForXhr property of the request queue to false will >>> bypass usage of jsf.ajax. We can add support for a public way of doing >>> this later if necessary. >>> - Server side integration with the JSF2 APIs and client behaviors, >>> JSF2 submission working along side of partialSubmit=3Dtrue and auto PPR= . >>> >>> Thank you, >>> Andrew >>> >>> >>> >>> >>> >>> >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> sessions: http://www.slideshare.net/mwessendorf >> twitter: http://twitter.com/mwessendorf >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf >