Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 29487 invoked from network); 23 Sep 2006 02:34:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Sep 2006 02:34:41 -0000 Received: (qmail 8343 invoked by uid 500); 23 Sep 2006 02:34:40 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 8305 invoked by uid 500); 23 Sep 2006 02:34:39 -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 8294 invoked by uid 99); 23 Sep 2006 02:34:39 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 19:34:39 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=gvanmatre@comcast.net; spf=permerror X-ASF-Spam-Status: No, hits=4.6 required=5.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE,MIME_BOUND_NEXTPART Received-SPF: error (idunn.apache.osuosl.org: domain comcast.net from 204.127.192.85 cause and error) Received: from [204.127.192.85] ([204.127.192.85:59782] helo=rwcrmhc15.comcast.net) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 46/41-25616-F2D94154 for ; Fri, 22 Sep 2006 19:34:24 -0700 Received: from rmailcenter75.comcast.net ([204.127.197.157]) by comcast.net (rwcrmhc15) with SMTP id <20060923023421m1500ld4vbe>; Sat, 23 Sep 2006 02:34:21 +0000 Received: from [67.176.124.57] by rmailcenter75.comcast.net; Sat, 23 Sep 2006 02:34:19 +0000 From: gvanmatre@comcast.net (Gary VanMatre) To: "MyFaces Development" Subject: Re: Problems with partial page rendering Date: Sat, 23 Sep 2006 02:34:19 +0000 Message-Id: <092320060234.28650.45149D2B000ACDA900006FEA22064246130A9D9B0E03020E9009@comcast.net> X-Mailer: AT&T Message Center Version 1 (Apr 11 2006) X-Authenticated-Sender: Z3Zhbm1hdHJlQGNvbWNhc3QubmV0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="NextPart_Webmail_9m3u9jl4l_28650_1158978859_0" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --NextPart_Webmail_9m3u9jl4l_28650_1158978859_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Martin and Jacob, Thanks for the info. I'll take a better look at the new JspIdConsumer. Gary -------------- Original message -------------- From: "Martin Marinschek" > Hi Gary, > > yes, this is what we are doing, exactly. And for the same reasons. I > haven't found a better way - without JspIdConsumers around ;). > > regards, > > Martin > > On 9/22/06, Gary VanMatre wrote: > > > > >From: jacob@hookom.net > > > > > >Declaring subviews and ajax regions is only a partial solution-- when JSF > > in fact > > >should be able to re-render any component without being explicitly declared > > as a > > >refreshable region (that's what we were pushing out of Facelets and JSF > > 1.2). > > >Ajax4Jsf does this by decoration of existing, non-ajax components and the > > JSF > > >1.2 invokeOnComponent (Martin, et. al) can do it for any component without > > >decoration in a very, very efficient manner. > > > > I have a related question that I'm sure you guys can help me understand. It > > has more > > to do with restoring the view and then recreating the components that are > > marked as > > transient. I think you would have similar issues with partial page > > rendering. > > > > There was a recent change in the myfaces UIViewRoot. The change was related > > to the createUniqueId method. This component now persists the last > > generated id. > > From what I understand, JSF RI 1.2 behaves the same. > > > > What I'm unsure about is how to insert a new component (verbatim) into a > > restored tree. > > What is the best way to calculate an id that won't collide. It also > > requires a different method > > of inspecting the restored tree to see if a component needs to be recreated > > using the > > findComponent method. > > > > For a temporary solution with Clay, I create my own sequence that is reset > > each time the > > view is rendered and passed around in request scope. This new sequence > > doesn't use > > the UIViewRoot's method of generating a sequence but it seems to work. > > > > It appears that the myfaces JSP tags are doing a similar thing. The > > generated component > > id's don't appear to be generated using the UIViewRoot. > > > > Any insight would be appreciated. > > > > Gary > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces --NextPart_Webmail_9m3u9jl4l_28650_1158978859_0 Content-Type: text/html Content-Transfer-Encoding: 8bit
Martin and Jacob,
 
Thanks for the info.  I'll take a better look at the new JspIdConsumer.
 
Gary
 
-------------- Original message --------------
From: "Martin Marinschek" <martin.marinschek@gmail.com>

> Hi Gary,
>
> yes, this is what we are doing, exactly. And for the same reasons. I
> haven't found a better way - without JspIdConsumers around ;).
>
> regards,
>
> Martin
>
> On 9/22/06, Gary VanMatre wrote:
> >
> > >From: jacob@hookom.net
> > >
> > >Declaring subviews and ajax regions is only a partial solution-- when JSF
> > in fact
> > >should be able to re-render any component without being explicitly declared
> > as a
> > >refreshable region (that's what we were pushing out of Facelets and JSF
> > 1.2).
> > >Ajax4Jsf does this by decoration of existing, non-ajax comp onents and the
> > JSF
> > >1.2 invokeOnComponent (Martin, et. al) can do it for any component without
> > >decoration in a very, very efficient manner.
> >
> > I have a related question that I'm sure you guys can help me understand. It
> > has more
> > to do with restoring the view and then recreating the components that are
> > marked as
> > transient. I think you would have similar issues with partial page
> > rendering.
> >
> > There was a recent change in the myfaces UIViewRoot. The change was related
> > to the createUniqueId method. This component now persists the last
> > generated id.
> > From what I understand, JSF RI 1.2 behaves the same.
> >
> > What I'm unsure about is how to insert a new component (verbatim) into a
> > restored tree.
> > What is the best way to calculate an i d that won't collide. It also
> > requires a different method
> > of inspecting the restored tree to see if a component needs to be recreated
> > using the
> > findComponent method.
> >
> > For a temporary solution with Clay, I create my own sequence that is reset
> > each time the
> > view is rendered and passed around in request scope. This new sequence
> > doesn't use
> > the UIViewRoot's method of generating a sequence but it seems to work.
> >
> > It appears that the myfaces JSP tags are doing a similar thing. The
> > generated component
> > id's don't appear to be generated using the UIViewRoot.
> >
> > Any insight would be appreciated.
> >
> > Gary
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Devel opment and
> Courses in English and German
>
> Professional Support for Apache MyFaces
--NextPart_Webmail_9m3u9jl4l_28650_1158978859_0--