Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 26318 invoked from network); 16 Nov 2005 20:07:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Nov 2005 20:07:23 -0000 Received: (qmail 34625 invoked by uid 500); 16 Nov 2005 20:07:20 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 34575 invoked by uid 500); 16 Nov 2005 20:07:20 -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 34559 invoked by uid 99); 16 Nov 2005 20:07:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 12:07:19 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=MISSING_HEADERS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.144] (HELO mta201-rme.xtra.co.nz) (210.86.15.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 12:08:53 -0800 Received: from mta2-rme.xtra.co.nz ([210.86.15.192]) by mta201-rme.xtra.co.nz with ESMTP id <20051116200656.MLJK13239.mta201-rme.xtra.co.nz@mta2-rme.xtra.co.nz> for ; Thu, 17 Nov 2005 09:06:56 +1300 Received: from [10.3.192.52] ([210.54.44.187]) by mta2-rme.xtra.co.nz with ESMTP id <20051116200656.QWYP14324.mta2-rme.xtra.co.nz@[10.3.192.52]> for ; Thu, 17 Nov 2005 09:06:56 +1300 Message-ID: <437B91A0.2090802@obsidium.com> Date: Thu, 17 Nov 2005 09:08:00 +1300 From: Simon Kitching User-Agent: Thunderbird 1.4 (X11/20050908) MIME-Version: 1.0 CC: MyFaces Discussion Subject: Re: Why is verbatim component transient? References: <437B65F2.5020108@weber-oldenburg.de> In-Reply-To: <437B65F2.5020108@weber-oldenburg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Volker Weber wrote: > Hi, > > i just came over a problem with verbatim tags in ajax enabled components. > see: > http://www.mail-archive.com/users%40myfaces.apache.org/msg12124.html > > The UIOutput components created for verbatim tags are not saved to state > because there are explicitly set to transient. > > This makes it impossible to use verbatim tags in content of ajax components. > > Is there a spec reason for this, then we should have a tomahawk > verbatim, or is this just because of performance? > > If not a spec reason this should be changed because seems to be a bug. > I would expect that the reason is for performance/memory/bandwidth usage. As far as I can see, a UIOutput component (including f:verbatim contents) can simply be recreated during render and discarded after; there are never any events or model updates generated by an output component so the component state is irrelevant. And an f:verbatim component can potentially be very large. It would be a great waste to store its entire state in memory - or even worse, to stream it down to the client then back to the server when using client-side state saving. By the way, in most apache projects cross-posting to two different mail lists is regarded as a bad thing. I've replied only to the user list here; surely all developers will be subscribed to that. Regards, Simon