From adffaces-user-return-1650-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Wed Dec 20 17:27:56 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 95431 invoked from network); 20 Dec 2006 17:27:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 17:27:55 -0000 Received: (qmail 80059 invoked by uid 500); 20 Dec 2006 17:28:02 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 80045 invoked by uid 500); 20 Dec 2006 17:28:02 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 80036 invoked by uid 99); 20 Dec 2006 17:28:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 09:28:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [213.205.33.55] (HELO averell.tiscali.it) (213.205.33.55) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 09:27:50 -0800 Received: from [192.168.0.3] (84.223.104.245) by averell.tiscali.it (7.3.118) id 45892ACC0000B283 for adffaces-user@incubator.apache.org; Wed, 20 Dec 2006 18:27:26 +0100 Message-ID: <458972AF.5030105@tecnotp.it> Date: Wed, 20 Dec 2006 18:28:15 +0100 From: Renzo Tomaselli User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: adffaces-user@incubator.apache.org Subject: Re: [Trinidad] using t:saveState References: <4589281C.8070401@tecnotp.it> <71235db40612200453k6295e3c6q52850a9e55c595f9@mail.gmail.com> <458946FC.8040600@tecnotp.it> <6dac79b90612200843j305293deo9a1a9a547066d5d2@mail.gmail.com> <71235db40612200846q4ca55525id05b6362099384c7@mail.gmail.com> In-Reply-To: <71235db40612200846q4ca55525id05b6362099384c7@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Matthias, I placed the param below at the beginning of web.xml, but things run as before, e.g. viewState.popRoot(context) gets called while restoring every view. I could not spot where this caching optimization should depend on a parameter. Where can I control that flag from sources and how can I turn Trinidad logging to a finer grain ? Btw, I noticed another misbehavior which might be related to wrong view caching. I have a page with a section which is rendered according to a show/hide button. It happens sometime that - with details hidden - bean setters are called for actually unrendered components, much like having a mismatch between actual view and the cache. New value passed in is null though, hence quite a number of troubles. -- Renzo Matthias Wessendorf wrote: > Adam, > > can you nail that to tomahawks jira? > > thx, > > > On 12/20/06, Adam Winer wrote: >> A magic configuration option should solve the problem >> >> >> >> org.apache.myfaces.trinidad.CACHE_VIEW_ROOT >> false >> >> >> The optimization in StateManagerImpl is very significant, but it >> *does* break t:saveState - since when it is in effect, we can skip >> processRestoreState() altogether. It'd be a Good Thing if t:saveState >> was able to deal with StateManagers that include this optimization. >> >> -- Adam >> >> >> On 12/20/06, Renzo Tomaselli wrote: >> > >> > Matthia, I apologize for the font. Thunderbird updated itself to >> 1.5.0.9 >> > this morning, then it seems to set font size to xx-large, while >> appearing >> > normal here. Current text is set to small. >> > Concerning state restoring: from the debugger I noticed that when >> restoring >> > *doesn't* work, in method >> > >> org.apache.myfaces.trinidadinternal.application.StateManagerImpl.restoreView() >> >> > we have: >> > >> > _LOG.fine("Successfully found view state for token {0}", >> token); >> > UIViewRoot root = viewState.popRoot(context); // bug 4712492 >> > if (root != null) >> > { >> > _LOG.finer("UIViewRoot for token {0} already exists. >> Bypassing >> > restoreState", token); >> > return root; // <----- returns here >> > } >> > >> > method returns there, thus skipping processRestoreState. >> > On the other hand, when it restores correctly, this method returns >> after >> > calling processRestoreState a few lines further, which does proper >> state >> > restoring. It seems that a kind of cache hit based on retrieved token >> > prevents full restoring. Just a guess. >> > >> > Regarding the TrinidadFilter: I can see it on the stack (doFilter, >> > _doFilterImpl, _invokeDoFilter, etc.) however the log warning is >> there. My >> > web.xml is: >> > >> > >> > >> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > version="2.4" >> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> >> > Conaxo axxento publisher >> > Conaxo experiments >> > >> > >> > >> > >> > >> > >> > >> > >> org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER >> >> > >> > com.sun.facelets.FaceletViewHandler >> > >> > >> > >> > >> > >> > >> > >> > >> org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE >> >> > false >> > >> > >> > >> > >> > >> > >> org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION >> >> > true >> > >> > >> > >> > >> > >> > >> org.apache.myfaces.trinidad.CHANGE_PERSISTENCE >> > session >> > >> > >> > >> > >> > >> > facelets.REFRESH_PERIOD >> > 2 >> > >> > >> > >> > facelets.DEVELOPMENT >> > true >> > >> > >> > >> > facelets.LIBRARIES >> > >> > /tags/tomahawk.taglib.xml; >> > /tags/conaxo.taglib.xml >> > >> > >> > >> > >> > >> > >> > javax.faces.STATE_SAVING_METHOD >> > client >> > >> > >> > >> > javax.faces.DEFAULT_SUFFIX >> > .xhtml >> > >> > >> > >> > >> > >> > javax.faces.CONFIG_FILES >> > >> > /WEB-INF/login-config.xml, >> > /WEB-INF/logout-config.xml, >> > /WEB-INF/dbList-config.xml, >> > /WEB-INF/docBrowser-config.xml, >> > /WEB-INF/dbTree-config.xml, >> > /WEB-INF/result-config.xml, >> > /WEB-INF/navigator.xml, >> > >> > >> > >> > user >> > Tomarenz >> > >> > >> > domain >> > Atlantis >> > >> > >> > host >> > Renzo >> > >> > >> > loginType >> > s >> > >> > >> > >> > trinidad >> > >> > >> org.apache.myfaces.trinidad.webapp.TrinidadFilter >> >> > >> > >> > >> > >> > >> > MyFacesExtensionsFilter >> > >> > >> org.apache.myfaces.webapp.filter.ExtensionsFilter >> >> > >> > maxFileSize >> > 20m >> > >> > >> > >> > >> > trinidad >> > faces >> > >> > >> > >> > >> > MyFacesExtensionsFilter >> > >> > faces >> > >> > >> > >> > >> > MyFacesExtensionsFilter >> > >> > /faces/myFacesExtensionResource/* >> > >> > >> > >> > >> > >> > resources >> > >> > >> org.apache.myfaces.trinidad.webapp.ResourceServlet >> >> > >> > >> > >> > faces >> > javax.faces.webapp.FacesServlet >> > 1 >> > >> > >> > >> > resources >> > /adf/* >> > >> > >> > >> > faces >> > *.faces >> > >> > >> > >> > >> > >> > >> > Matthias Wessendorf wrote: >> > Renzo, >> > >> > can you please reduce your font size ? :) >> > Hard to read in gmail :) >> > >> > Regarding the verifyFilterIsInstalled method... >> > perhaps the TrinidadFilter is not *ordered* in the "right" way? >> > I have them listed in web.xml before the servlets (and their mapping) >> > >> > Perhaps you wonder why the TrinidadFilterImpl present. That is >> because >> > it is added via the Meta-inf/service facility. >> > >> > >> > >> > >