How to resolve this warning

What does this error message mean? What values ​​must be provided to get rid of this warning?

15:10:58,024 WARNING [component] facelets.RECREATE_VALUE_EXPRESSION_ON_BUIL
D_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_BEF
ORE_RESTORE you must also set facelets.BUILD_BEFORE_RESTORE to 'true'!
+3
source share
2 answers

In your file, web.xmlit seems that you have defined this parameter:

<context-param>
    <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
    <param-value>true</param-value>
</context-param>

So, as indicated by the warning message, just add:

<context-param>
    <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
    <param-value>true</param-value>
</context-param>

Another solution is to remove the first parameter from web.xml...

+5
source

It seems that this functionality is not very useful and can be dangerous (it broke the re-rendering of Ajax in my case).

I suppress the warning by adding this to my web.xml:

<context-param>
    <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
    <param-value>false</param-value>
</context-param>
+4
source

Source: https://habr.com/ru/post/1768590/


All Articles