You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (Resolved) (JIRA)" <de...@myfaces.apache.org> on 2012/01/03 17:04:39 UTC
[jira] [Resolved] (MYFACES-3421) AJAX handling on the client
doesn't properly detect ajax handling errors
[ https://issues.apache.org/jira/browse/MYFACES-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Punz resolved MYFACES-3421.
----------------------------------
Resolution: Fixed
> AJAX handling on the client doesn't properly detect ajax handling errors
> -------------------------------------------------------------------------
>
> Key: MYFACES-3421
> URL: https://issues.apache.org/jira/browse/MYFACES-3421
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.1.5
> Reporter: Mark Struberg
> Assignee: Werner Punz
>
> We should get a graceful Exception (at least in ProjectStage.Development where I'm in). Instead we get a long XML and the following text on the client:
> "malformedXML: malformedXML Caller: myfaces._impl.xhrCore._AjaxResponse
> Caller Function: processResponse
> XML Parse ErrorEs gab zwar eine Antwort des Servers, jedoch war diese nicht im erwarteten XML Format. Der Server hat kein valides XML gesendet! Bearbeitung abgebrochen."
> The XML response from the server looks like the following
> {noformat}
> <?xml version="1.0" encoding="utf-8"?><partial-response><changes><update id="nodeForm:tree"><![CDATA[<div id="nodeForm:tree"><div id="nodeForm:tree_container" class="ygtv-highlight"></div><input id="nodeForm:tree_selection" name="nodeForm:tree_selection" type="hidden" /></div><script type="text/javascript"><!--
> widget_nodeForm_tree = new PrimeFaces.widget.TreeView('nodeForm:tree', [{html:'Masterstudium Building Science and Technology ',type:'html',rowKey:'0',expanded:true,children:[{html:' Fundamentals ',type:'html',rowKey:'0.0',expanded:true,children:[{html:'VU Tools and Media ',type:'html',rowKey:'0.0.0',isLeaf:true,expanded:true,children:[]},{html:'VO Research Design and Methods ',type:'html',rowKey:'0.0.1',isLeaf:true,expanded:true,children:[]},{html:'SE Research Seminar ',type:'html',rowKey:'0.0.2',isLeaf:true,expanded:true,children:[]},{html:'VU Fundamentals in Building Science ',type:'html',rowKey:'0.0.3',isLeaf:true,expanded:true,children:[]}]},{html:' Design Computing ',type:'html',rowKey:'0.1',expanded:true,children:[{html:'SE Current Issues in CAAD ',type:'html',rowKey:'0.1.0',isLeaf:true,expanded:true,children:[]},{html:'VU Design Methods ',type:'html',rowKey:'0.1.1',isLeaf:true,expanded:true,children:[]},{html:'VU Advanced Geometry Concepts ',type:'html',rowKey:'0.1.2',isLeaf:true,expanded:true,children:[]},{html:'VU Information Architecture ',type:'html',rowKey:'0.1.3',isLeaf:true,expanded:true,children:[]},{html:'VU Dynamic Simulation and Visualization ',type:'html',rowKey:'0.1.4',isLeaf:true,expanded:true,children:[]},{html:'VU Intruduction in Information Systems ',type:'html',rowKey:'0.1.5',isLeaf:true,expanded:true,children:[]}]},{html:' Building Performance ',type:'html',rowKey:'0.2',expanded:true,children:[{html:'VU Energy and Buildings ',type:'html',rowKey:'0.2.0',isLeaf:true,expanded:true,children:[]},{html:'VU Thermal building Performance ',type:'html',rowKey:'0.2.1',isLeaf:true,expanded:true,children:[]},{html:'VU Building Diagnostics ',type:'html',rowKey:'0.2.2',isLeaf:true,expanded:true,children:[]},{html:'VO Visual and acoustical building performance ',type:'html',rowKey:'0.2.3',isLeaf:true,expanded:true,children:[]},{html:'VU Building systems and controls ',type:'html',rowKey:'0.2.4',isLeaf:true,expanded:true,children:[]},{html:'VU Building Diagnostics laboratory ',type:'html',rowKey:'0.2.5',isLeaf:true,expanded:true,children:[]},{html:'VO Building ecology ',type:'html',rowKey:'0.2.6',isLeaf:true,expanded:true,children:[]},{html:'VU Building Performance Modeling (bis 2008/09) ',type:'html',rowKey:'0.2.7',isLeaf:true,expanded:true,children:[]},{html:'VU Building Performance Simulation (bis 2008/09) ',type:'html',rowKey:'0.2.8',isLeaf:true,expanded:true,children:[]},{html:'VU Building Controls and Diagnostics (bis 2008/09) ',type:'html',rowKey:'0.2.9',isLeaf:true,expanded:true,children:[]},{html:'VU Building Diagnostics Laboratory (bis 2008/09) ',type:'html',rowKey:'0.2.10',isLeaf:true,expanded:true,children:[]},{html:'VU Building Ecology and sustainable design (bis 2008/09) ',type:'html',rowKey:'0.2.11',isLeaf:true,expanded:true,children:[]},{html:'SE Building Ecology Workshop (bis 2008/09) ',type:'html',rowKey:'0.2.12',isLeaf:true,expanded:true,children:[]},{html:'VO Human Ecology (bis 2008/09) ',type:'html',rowKey:'0.2.13',isLeaf:true,expanded:true,children:[]}]},{html:' Vertiefungsfächer ',type:'html',rowKey:'0.3',expanded:true,children:[{html:'UE Project Course in Building Performance or Design Computing ',type:'html',rowKey:'0.3.0',isLeaf:true,expanded:true,children:[]},{html:'SE Master Project Seminar ',type:'html',rowKey:'0.3.1',isLeaf:true,expanded:true,children:[]},{html:'SE Advanced Topics in Building Science ',type:'html',rowKey:'0.3.2',isLeaf:true,expanded:true,children:[]}]},{html:' Masters Project ',type:'html',rowKey:'0.4',expanded:true,children:[{html:'UE Masters Project ',type:'html',rowKey:'0.4.0',isLeaf:true,expanded:true,children:[]}]},{html:' Wahlfächer Architektur ',type:'html',rowKey:'0.5',expanded:true,children:[{html:' Wahlfächer Architektur ',type:'html',rowKey:'0.5.0',expanded:true,children:[{html:'VO Architektur und Tragwerk ',type:'html',rowKey:'0.5.0.0',isLeaf:true,expanded:true,children:[]},{html:'VU EDV-gestützte Tragwerksplanung ',type:'html',rowKey:'0.5.0.1',isLeaf:true,expanded:true,children:[]},{html:'VU Konstruieren und Realisieren von komplexen Tragwerken ',type:'html',rowKey:'0.5.0.2',isLeaf:true,expanded:true,children:[]},{html:'SE Projektorient.Lösen stat.konstr.Fragestellungen ',type:'html',rowKey:'0.5.0.3',isLeaf:true,expanded:true,children:[]}]}]},{html:' Freie Wahlfächer u. Zusatzqualifikationen ',type:'html',rowKey:'0.6',isLeaf:true,expanded:true,children:[]}]}],{dynamic:false,url:'/curriculum/admin/editNode.xhtml?windowId=window',formId:'nodeForm',cache:true,selectionMode:'single',propagateHighlightDown:false,propagateHighlightUp:false});
> widget_nodeForm_tree.render();
> //--></script>]]></update><extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response><?xml version="1.0" encoding="utf-8"?><partial-response><error><error-name>java.lang.IllegalStateException</error-name><error-message><![CDATA[component with duplicate id "nodeForm:j_id_89_1" found]]></error-message></error></partial-response>
> {noformat}
> The rendered component is a PrimeFaces p:tree:
> {noformat}
> <p:tree id="tree" value="#{model.root}" var="_n"
> selectionMode="single" selection="#{model.selectedNode}">
> <p:treeNode> ...
> {noformat}
--
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