Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3899

Messages missing after reload with CACHE_EL_EXPRESSIONS = alwaysRecompile

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.2.3
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None

      Description

      When CACHE_EL_EXPRESSIONS is set to alwaysRecompile in the web.xml, after reloading sometimes all values loaded from a resource bundle come in blank. For example, in a page like below the first time everything looks fine, if you reload the page all you see is a blank page (actually everything is working except the outputText):

      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:h="http://java.sun.com/jsf/html">
      	
      	
      	<f:view>
      		<f:loadBundle basename="Messages" var="msg" />
      		
      		<h:body>
      	
      			<h1><h:outputText value="#{msg.hello}" /></h1>
      		
      		</h:body>
      	</f:view>
      	
      </html>
      

      I will attach a full example project.

        Attachments

        1. MessageTest.zip
          4.07 MB
          Matt Weaver
        2. messagetest.war
          4.07 MB
          Matt Weaver
        3. messagetest.war
          4.50 MB
          Matt Weaver
        4. build.xml
          0.8 kB
          Matt Weaver

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              maweaver Matt Weaver
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: