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

Messages component cannot be updated by ajax without wrapping it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-SNAPSHOT
    • 2.0.2
    • JSR-314
    • None

    Description

      When there are no faces messages generated, h:messages component does not render no HTML tags, so it cannot be updated by ajax.

      To reproduce:

      <h:messages id="messages" />

      <h:commandButton value="Invoke listener by type" action="#

      {bean.generateMessage}

      ">
      <f:ajax render="messages" />
      </h:commandButton>

      No messages will appear. As a workaround messages component can be wrapped into h:panelGroup that's id will be specified in 'render':

      <h:panelGroup id="messages">
      <h:messages />
      </h:panelGroup>

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              nbelaevski Nick Belaevski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: