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

Messages missing after reload with CACHE_EL_EXPRESSIONS = alwaysRecompile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.2.3
    • None
    • General
    • 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.war
          4.50 MB
          Matt Weaver
        2. messagetest.war
          4.07 MB
          Matt Weaver
        3. build.xml
          0.8 kB
          Matt Weaver
        4. MessageTest.zip
          4.07 MB
          Matt Weaver

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: