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

Labels with EL expressions are not shown in messages if partial state saving is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.0.15, 2.1.9
    • None
    • None
    • tested with tomhawk20-1.1.12 and 1.1.13.
      and with tomcat 6.0.35 and 7.0.29

    Description

      I have a simple form with two required fields.
      First field has label with plain text.
      Second field has a label with an EL expression.

      The label with the EL expression is not shown in messages if javax.faces.PARTIAL_STATE_SAVING is set to false.

      The error occurs with myfaces 2.1.8.

      It works correctly with mojarra 2.1.11

      Sample:
      <h:form id="myform">
      <h:inputText id="name" value="#

      {myController.name}

      " required="true" label="Hardcoded name" />
      <h:inputText id="password" value="#

      {myController.password}

      " required="true" label="#

      {msgs['password']}

      "/>

      <h:commandButton id="loginButton"
      action="#

      {myController.login}

      "
      value="Login"/>

      <t:messages id="idMsgs"
      showDetail="false"
      showSummary="true"
      replaceIdWithLabel="true"/>
      </h:form>

      This is currently a blocker for an update from JSF 1.2 to 2.1

      Attachments

        1. zMsgs.war
          7.02 MB
          Michael Heinen

        Activity

          People

            lu4242 Leonardo Uribe
            mheinen Michael Heinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: