5 Replies Latest reply on Oct 22, 2007 10:00 AM by shakenbrain

    h:outputText escape attribute not honored during rerender

    shakenbrain

      With the following XHTML, I produce two identical lines of text, one inside an <a:outputPanel> and one outside:

      <h:form id="test">
       <a:outputPanel id="testPanel">
       <h:outputText value="#{jobTicketActivityFormatter.result()}" escape="true"/>
       </a:outputPanel>
       <br/>
       <a:commandLink value="test" reRender="testPanel" action="#{jobTicketActivityFormatter.test}"/>
      </h:form>
      <br/>
      <h:outputText value="#{jobTicketActivityFormatter.result()}" escape="true"/>


      On the initial page load, I get the expected result:

      This is some pre-formatted text: <b>This is a test</b>
      test
      This is some pre-formatted text: <b>This is a test</b>


      After clicking the a:commandLink, the output panel is rerendered incorrectly. The 'escape' attribute (set to true) is ignored. The first line is then rendered thus:

      This is some pre-formatted text: This is a test

      Is this a bug? Does anyone have an idea for a workaround?