XML not well formed under Internet Explorer
jrwhitley Apr 30, 2015 9:21 AMI have an application which works as expected under firefox or chrome.
It has two radio buttons. Under internet explorer it displays OK until I click on the non-active radio button which cause a dialog box headed 'message from webpage' to appear with the message 'MalformedXML: Invalid Argument'.
Does this message derive from internet explorer itself or is it application JavaScript generating the message?
This is the xhtml of the form which is being updated
<h:form id="payment"> |
|
<!-- Payment on account -->
<h:panelGroup id="onaccount" rendered="#{actController.renderAccount}"> | |
<h:outputText value="Account " /> |
</h:panelGroup> |
<!-- Payment by card -->
<h:panelGrid columns="2" id="bycard" rendered="#{actController.renderCard}"> | |
<h:outputText value="Card " /> | |
<h:outputText value="column " /> |
</h:panelGrid > | |
<h:commandButton id="orderbutton" action="#{actController.order()}" style="float:right" value="Confirm" disabled="#{not actController.confirmable}"/> | |
</h:form> |
If I run it with firebug under firefox, I can see this response to the click
<?xml version='1.0' encoding='UTF-8'?>
<partial-response id="j_id1"><changes><update id="payment"><![CDATA[
<form id="payment" name="payment" method="post" action="/actjsf/index.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="payment" value="payment" />
<p>How would you like to pay ? <table id="payment:paytype">
<tr>
<td>
<input type="radio" checked="checked" name="payment:paytype" id="payment:paytype:0" value="A" onchange
="mojarra.ab(this,event,'change','@this','payment')" /><label for="payment:paytype:0"> ACT Customer Account
</label></td>
<td>
<input type="radio" name="payment:paytype" id="payment:paytype:1" value="C" onchange="mojarra.ab(this
,event,'change','@this','payment')" /><label for="payment:paytype:1"> Credit Card</label></td>
</tr>
</table>
</p>
<span id="payment:onaccount">Account </span>
<input id="payment:orderbutton" type="submit" name="payment:orderbutton" value="Confirm" style="float
:right" disabled="disabled" />
</form>]]></update><update id="j_id1:javax.faces.ViewState:0"><![CDATA[1193877744889537191:-93310910124109285
]]></update><extension id="org.richfaces.extension"><render>payment</render></extension></changes></partial-response
>
Any suggestions?