Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 24074 invoked from network); 6 Jul 2007 23:18:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 23:18:36 -0000 Received: (qmail 75979 invoked by uid 500); 6 Jul 2007 23:18:29 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 75927 invoked by uid 500); 6 Jul 2007 23:18:29 -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 75893 invoked by uid 99); 6 Jul 2007 23:18:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 16:18:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 16:18:23 -0700 Received: by nz-out-0506.google.com with SMTP id r28so302764nza for ; Fri, 06 Jul 2007 16:18:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UCTVftdV9w0+M0E7aVqPBe416x+TRDMuqsxgjAaANEFiB2Jgi/V+bJx1vm4vZRqUAwYnpRvLGnh74clvDIhIkLl/Siv7xiz2IYOh5OXQs0Qbs7+VDIKV9B639ZxunGYs4qgOF4vI/1OYJ6LP+g0GD01UPj+9AHp2ileUiDsfOLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XViSeKXV5NvLpFwvXph42dwn2PYixpnl+nvKi1cRIZGHG2K/wzbgkuZwpppkHkxC7QBV3ipTAoAVpQhF2CA4yrchnTAkP5kt6VZ4ikQM/2YIv6JSMMlFaaPsJ4ZgeK0CCV+sE0YDXB4/AkRpY3IrSIlMzjC+Qybm3i2nD0qyStk= Received: by 10.115.106.7 with SMTP id i7mr1098975wam.1183763878609; Fri, 06 Jul 2007 16:17:58 -0700 (PDT) Received: by 10.115.18.12 with HTTP; Fri, 6 Jul 2007 16:17:58 -0700 (PDT) Message-ID: <6dac79b90707061617k5fb460h1d61fb7557da7061@mail.gmail.com> Date: Fri, 6 Jul 2007 16:17:58 -0700 From: "Adam Winer" To: "MyFaces Discussion" Subject: Re: [Trinidad] PPR duplicating transient components In-Reply-To: <68e8c72e0707061513j576f20a5w9b5cda03204e754@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <070620072153.29427.468EB9DD00021455000072F322069984990A9D9B0E03020E9009@comcast.net> <68e8c72e0707061513j576f20a5w9b5cda03204e754@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 7/6/07, noah wrote: > On 7/6/07, Gary VanMatre wrote: > > > > > > >From: noah > > > > > > On 7/6/07, Gary VanMatre wrote: > > > > > > > > >From: noah > > > > > > > > > > Thought I'd post this before creating a JIRA issue, in case I've > > > > > overlooked something. I just now produced this with 1.2.1 but I think > > > > > I've seen it in 1.0.x before. > > > > > > > > > > In the following page, clicking the link correctly updates 'Foo=' to > > > > > 'Foo=1' but it renders the paragraph twice. Clicking again updates > > > > > -both- paragraphs to 'Foo=2' and adds a third. Click again for a 4th, > > > > > and Foo=3, and so on. > > > > > > > > > > Using an h:outputText instead of inline EL keeps the text from being > > > > > repeated, but additional paragraph elements are added with each click. > > > > > > > > > > > > > > > > >> > > >> > xmlns:ui="http://java.sun.com/jsf/facelets" > > >> > xmlns:f="http://java.sun.com/jsf/core" > > >> > xmlns:h="http://java.sun.com/jsf/html" > > >> > xmlns:tr="http://myfaces.apache.org/trinidad"> > > >> > > > >> > > > >> >

Foo=#{pageFlowScope.foo}

> > > ;> >
> > >> > & nbsp;& nbsp; > > >> > > >> >target="#{pageFlowScope.foo}" /> > > >> > > > >> >
> > >> >
> > > > > > > > > > > > > > > > > > > > What happens if you use the output text with the transient attribute? > > > > > > No change, same behavior as transient="false". The paragraph tags > > > still get repeated of course. I suppose I shouldn't say 'transient' > > > but all HTML, inline text, and EL. > > > > > > > > > > > Are you using client or server side state saving? > > Client. > > > > > I'm not familiar with the specifics of Facelets but I believe that it is > > creating its own jspid to simulate a "JspIdConsumer" and adds it to the > > component's attributes. This is how Clay currently works after a few tips > > from Jacob. When the component tree is restored, the components that are > > marked transient fall out. Transient components have to be recreated and > > inserted into the component tree. The "jspid" marker is used to map > > existing components to the meta-data used to build the tree. > > > > It sounds like the markup nodes are not being set as transient by facelets > > or maybe something in the state saving is not discarding the transient > > components. > > > > Can you tell if the outputText components that contain the markup "

..." > > are "transient=true"? > > I don't know how to do that. I don't think Facelets uses actual > h:outputText components though. > > > What happens if you switch state saving modes? > > No copies. > > But, the rest of my application blows up for some reason :) So, which mode has the problem with copies getting created? If it's client-side state saving, what happens if you set org.apache.myfaces.trinidad.CACHE_VIEW_ROOT to false in web.xml? And, does: ... dodge the issue? -- Adam