[
https://issues.apache.org/jira/browse/MYFACES-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159775#comment-13159775
]
Leonardo Uribe commented on MYFACES-3412:
-----------------------------------------
Definitively there is a hole in the spec. In few words, it is not specified how
to extract the contentType from Accept HTTP header. But the request has a
header that clearly identifies it as an ajax request. We can use that. I think
HtmlResponseWriterImpl should have a param to define if the content to render
is html or xhtml and that condition should be calculated on HtmlRenderKit,
based on the content type and if the request is an ajax request.
Additionally, it is necessary to define a web config param to set the default
mode (html or xhtml), and fix the algorithm that calculates contentType to set
that default if no Accept header is set or there is no derived content type.
> updated AJAX values sometimes delete other elements
> ---------------------------------------------------
>
> Key: MYFACES-3412
> URL: https://issues.apache.org/jira/browse/MYFACES-3412
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.0.10, 2.1.4
> Reporter: Mark Struberg
> Assignee: Werner Punz
> Attachments: ajaxbug.zip
>
>
> The attached examples shows a problem I face after updating to the latest
> 2.0.10/11 and 2.1.4/5 MyFaces versions.
> I have 2 primefaces date pickers inside a h:panelGroup. Both date pickers
> create ajax requests and refresh their values. If you click one of them (both
> update the whole panelGroup), the 2nd date picker disapears.
> This might have something to do with the AJAX js rework?
> I can easily work around this issue, but I'm not sure which other problems
> might arise as well, thus we better fix this
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira