-
1. Re: No reRender with tomcat 6
nbelaevski Jan 28, 2009 3:04 PM (in response to fkj)Hello,
We've observed such behavior deploying application built in one timezone to the server located in another. The problem with this is because server deployer unpacks application archive setting original (of timezone where the application was built in) creation date for application files. This leads to the fact that last modification time is in future for all application resources, so they are refreshed constantly (that's seen as messages in server console and in logs). And the problem itself is caused by Facelets creating new implicit IDs for components on each request, so JSF cannot match components that were rendered previously with the new view. This breaks AJAX updates. -
2. Re: No reRender with tomcat 6
supernovasoftware.com Jan 28, 2009 3:21 PM (in response to fkj)I had a similar problem when packaging facelets templates in jars on JBoss.
I had to add<context-param> <param-name>facelets.REFRESH_PERIOD</param-name> <param-value>-1</param-value> </context-param>
to my web.xml to disable reloading of the templates. -
3. Re: No reRender with tomcat 6
fkj Jan 29, 2009 6:14 AM (in response to fkj)"supernovasoftware.com" wrote:
I had a similar problem when packaging facelets templates in jars on JBoss.
I had to add<context-param> <param-name>facelets.REFRESH_PERIOD</param-name> <param-value>-1</param-value> </context-param>
to my web.xml to disable reloading of the templates.
Exactly, problem started here after packing the templates in a JAR.
Setting negative refresh period solved the problem.
Thanks a lot,
Felipe -
4. Re: No reRender with tomcat 6
robert.raksi Dec 7, 2009 5:34 AM (in response to fkj)Isn't there another way around this problem? I noticed that setting the refresh period to -1 disables the reloading of all xhtml and xml files. This is not too good on a developement environment.
-
5. Re: No reRender with tomcat 6
nbelaevski Dec 7, 2009 5:58 AM (in response to fkj)Try the latest 1.1.15 Facelets version.
-
6. Re: No reRender with tomcat 6
robert.raksi Dec 7, 2009 7:25 AM (in response to fkj)"nbelaevski" wrote:
Try the latest 1.1.15 Facelets version.
That solved the problem, thanks.
We were using facelets that shipped with Seam 2.2.0.GA, according to it's manifest file the version was 1.1.15.B1
One minor issue that came up after the jar upgrade:2009.12.07. 13:11:54 com.sun.facelets.tag.jsf.ComponentHandler isRecreateValueExpressionsOnBuildBeforeRestore WARNING: facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE is set to 'true' but facelets.BUILD_BEFORE_RESTORE is set to 'false' or unset. To use facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE you must also set facelets.BUILD_BEFORE_RESTORE to 'true'!
I dont know what these properties do but I'll do some docs reading :)
I'll link the issues that I found related to this problem in the facelets issue tracker:
https://facelets.dev.java.net/issues/show_bug.cgi?id=278
https://facelets.dev.java.net/issues/show_bug.cgi?id=286
https://facelets.dev.java.net/issues/show_bug.cgi?id=336 -
7. Re: No reRender with tomcat 6
robert.raksi Dec 7, 2009 9:51 AM (in response to fkj)Well, google knows nothing about facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE so it doesn't exist :)