From adffaces-dev-return-1810-apmail-incubator-adffaces-dev-archive=incubator.apache.org@incubator.apache.org Thu Dec 07 10:32:22 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-dev-archive@locus.apache.org Received: (qmail 96302 invoked from network); 7 Dec 2006 10:32:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 10:32:19 -0000 Received: (qmail 74983 invoked by uid 500); 7 Dec 2006 10:32:26 -0000 Delivered-To: apmail-incubator-adffaces-dev-archive@incubator.apache.org Received: (qmail 74960 invoked by uid 500); 7 Dec 2006 10:32:26 -0000 Mailing-List: contact adffaces-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-dev@incubator.apache.org Delivered-To: mailing list adffaces-dev@incubator.apache.org Received: (qmail 74942 invoked by uid 99); 7 Dec 2006 10:32:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 02:32:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.89.70.5] (HELO MOES0012.tcc.dmz.local) (217.89.70.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 02:32:15 -0800 Received: from MOES0037.tcc.local ([10.6.4.137]) by MOES0012.tcc.dmz.local with InterScan Message Security Suite; Thu, 07 Dec 2006 12:31:46 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Trinidad: How does PPR replace content in the dom? Date: Thu, 7 Dec 2006 11:32:07 +0100 Message-ID: <885AADC3D2318E45807C702ABC2637DD13393F@MOES0037.tcc.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Trinidad: How does PPR replace content in the dom? Thread-Index: AccZ6vGYUDjOWfVRT5ebCVf1yJ0l/Q== From: =?iso-8859-1?Q?B=F6hringer_Jochen?= To: , X-imss-version: 2.044 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.6.1039(14858.002) X-imss-scores: Clean:71.75666 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) X-Virus-Checked: Checked by ClamAV on apache.org Hello, how does PPR replace content in the dom of the page. I know that PPR = uses an IFrame. But how is the data loaded into the IFrame copied into = the main page? I guess it could be realized this way: 1.) Load new HTML markup into the IFrame. 2.) Copy the new markup in the Iframe to the main Frame using .innerHtml Am I right or is it done using another mechanism? If I'm right and I = have a component whose renderer generates markup containing = This scriptlet would first be executed after loaded into the iframe. And = would be executed a second time if the ppr mechanism has copied it into = the main frame. Is this correct? If yes, how can I generate a javascript in a renderer which is called = after the markup is copied into the mainframe and not in the iframe? Is = there a special trick I can use in a component using PPR capabilities? I = would like to do it the Trinidad way, because I would like to donate my = DragAndDrop component (as soon as it works) back to Trinidad. Regards Jochen