myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2895) Messages component cannot be updated by ajax without wrapping it
Date Fri, 27 Aug 2010 20:59:54 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903629#action_12903629
] 

Werner Punz commented on MYFACES-2895:
--------------------------------------

I am not sure if this really is a myfaces but, this sounds more like a spec bug to me...


> 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
>
> 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.


Mime
View raw message