You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/09/01 06:26:54 UTC
[jira] Resolved: (MYFACES-2895) Messages component cannot be
updated by ajax without wrapping it
[ https://issues.apache.org/jira/browse/MYFACES-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-2895.
-------------------------------------
Assignee: Leonardo Uribe
Fix Version/s: 2.0.2-SNAPSHOT
Resolution: Fixed
I checked mojarra 2.0.3 and it is working in this way: if h:messages and a id was set, a <div> block is rendered, if if h:message and a id was set, a <span> block is rendered. So we can fix it and be sure this does not break the TCK.
> Messages component cannot be updated by ajax without wrapping it
> ----------------------------------------------------------------
>
> Key: MYFACES-2895
> URL: https://issues.apache.org/jira/browse/MYFACES-2895
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.2-SNAPSHOT
> Reporter: Nick Belaevski
> Assignee: Leonardo Uribe
> Fix For: 2.0.2-SNAPSHOT
>
>
> 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>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.