Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3C6776A8 for ; Wed, 3 Aug 2011 10:30:09 +0000 (UTC) Received: (qmail 86374 invoked by uid 500); 3 Aug 2011 10:29:59 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 85943 invoked by uid 500); 3 Aug 2011 10:29:30 -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 85929 invoked by uid 99); 3 Aug 2011 10:29:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 10:29:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.kocicak.koci@gmail.com designates 209.85.161.53 as permitted sender) Received: from [209.85.161.53] (HELO mail-fx0-f53.google.com) (209.85.161.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 10:29:18 +0000 Received: by fxd23 with SMTP id 23so978175fxd.12 for ; Wed, 03 Aug 2011 03:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=YJD08rE6zasWH9WFfR3XYitxEs9afn36qsTS/UjrG/8=; b=Ly//f1V5DVS84qBdTgBGIf6026G4ccezZnRf1KYgQ9wmxKZx+S22z6iezpJUqfDuCG QRgINC1DErH8BsNb3AsVNBVC+di7MyOM+EtLMO4eYuvBCR2xWPa5rgAtejE+jrzW36Mh b9De88+Lbg57d5RBvsQ0jOqzF+5ssNfRjCjzo= Received: by 10.223.72.80 with SMTP id l16mr1005844faj.33.1312367337364; Wed, 03 Aug 2011 03:28:57 -0700 (PDT) Received: from [192.168.1.121] (gate-uvoz.aura.cz [80.250.12.129]) by mx.google.com with ESMTPS id g20sm436908fai.21.2011.08.03.03.28.54 (version=SSLv3 cipher=OTHER); Wed, 03 Aug 2011 03:28:56 -0700 (PDT) Subject: Re: [core] dynamic script before (an equivalent for DialogRequest from Trinidad) From: Martin Koci To: MyFaces Development In-Reply-To: References: <1312309907.3135.42.camel@markoc-desktop> <9A40F73E-3806-42AB-8F4A-7DEDAA769B8C@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Aug 2011 12:28:31 +0200 Message-ID: <1312367311.21600.7.camel@markoc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit I'll try solution with a "mock" component before . Component fetchs all script requests from facesContext.attributes and renders them. Also that component is autoRender=true so it is re-rendered in every partial response. Jakob Korherr píše v St 03. 08. 2011 v 11:10 +0200: > Hi, > > > Maybe you can override BodyRenderer to implement this. > > For normal request: sure. > For AJAX requests: whole body re-rendering would be necessary, thus > not really usable. > > Regards, > Jakob > > 2011/8/3 Çağatay Çivici : > > Maybe you can override BodyRenderer to implement this. > > On Aug 3, 2011, at 11:39 AM, Jakob Korherr wrote: > > > > Hi, > > > > Nope, I don't think so. Maybe you can achieve it via a javascript > > event-handler on the client, but I actually don't know for sure. Maybe > > Werner can help you out! > > > > Regards, > > Jakob > > > > 2011/8/2 Martin Koci : > > > > Hi, > > > > has JSF an official API to achieve similar functionality as [1] ? > > > > Purpose and use case: > > > > 1) JSF process partially view > > > > 2) JSF artifact creates and queues a request "render this script ... > > > > before " > > > > 3) new element script is created and rendered before > > > > this is not same same @Resource(target="body"). Also this must work with > > > > partial response wihout explicit render="@all" > > > > > > Any ideas? > > > > > > Thanks, > > > > Kočičák > > > > > > [1] > > > > https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/DialogRequest.java > > > > > > > > > > > > > > > > > > -- > > Jakob Korherr > > > > blog: http://www.jakobk.com > > twitter: http://twitter.com/jakobkorherr > > work: http://www.irian.at > > > > Çağatay Çivici > > Principal Consultant > > PrimeFaces Lead | JSF EG Member > > > > Prime Teknoloji > > Bilkent Cyberpark, A-303d > > 06800 Ankara/Turkey > > Tel: +90 312 265 05 07 > > http://www.prime.com.tr > > > > >