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
- relates to
-
MYFACES-3272 The h:message and h:messages renderers don't provide a consistent parent element for updates
- Closed