It is a known bug under IE, table elements can not be replace with
OuterHtml which is used is wicketAjax implementation. This bug has been
fixed : see http://issues.apache.org/jira/browse/WICKET-143
--
Vincent Demay
http://www.demay-fr.net/blog/en
Ayodeji Aladejebi wrote:
I have this set of markups in a form with a AjaxSubmitButton.
During submit, I am supposed to send a feedback saved message to the
feedback panel and also update a Table that summarizes the form data
posted.
In Firefox, feedback panel and Summary markups were successfully
updated via Ajax but IE fails.
This is the general markup:
<tr>
<td></td>
<td >
<span wicket:id="feedback"></span>
</td>
</tr>
<tr>
<td></td>
<td wicket:id="summaryDetails">
<table width="100%" border="0">
<tr>
<th width="28%" bgcolor="#666666"
scope="row">Full Name </th>
<td width="72%" bgcolor="#99CC00">
<span
wicket:id="salutationList"></span> <span
wicket:id="firstNameField"></span> <span
wicket:id="middleNameField"></span> <span
wicket:id="surnameField"></span>
</td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Date of
Birth </th>
<td bgcolor="#99CC00"
wicket:id="dobField"> </td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">State of
Origin </th>
<td bgcolor="#99CC00"
wicket:id="originList"> </td>
</tr>
<tr>
<th bgcolor="#666666"
scope="row">Nationality</th>
<td bgcolor="#99CC00"
wicket:id="nationalityList"> </td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Marital
Status </th>
<td bgcolor="#99CC00"
wicket:id="maritalList"> </td>
</tr>
</table>
</td>
</tr>
Ajax Debug in FireFox Success:
INFO:
INFO: Initiating Ajax POST request on
/nlx/home?wicket:interface=:1:bioDataForm:formTable:bioDataFormSet:saveData:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=0.5243824397159562
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (1795 characters)
INFO:
<?xml version="1.0" encoding="UTF-8"?><ajax-response><component
id="bioDataForm_formTable_bioDataFormSet_summaryDetails" ><![CDATA[<td
id="bioDataForm_formTable_bioDataFormSet_summaryDetails"
style="display:block;">
<table width="100%" border="0">
<tr>
<th width="28%" bgcolor="#666666"
scope="row">Full Name </th>
<td width="72%" bgcolor="#99CC00">
<span>Mr.</span> <span></span>
<span></span> <span></span>
</td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Date of
Birth </th>
<td bgcolor="#99CC00"></td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">State of
Origin </th>
<td bgcolor="#99CC00">FCT</td>
</tr>
<tr>
<th bgcolor="#666666"
scope="row">Nationality</th>
<td bgcolor="#99CC00"></td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Marital
Status </th>
<td bgcolor="#99CC00"></td>
</tr>
</table>
</td>]]></component><component
id="bioDataForm_formTable_bioDataFormSet_feedback" ><![CDATA[<span
id="bioDataForm_formTable_bioDataFormSet_feedback" bgcolor="#99CC00">
<ul>
<li class="feedbackPanelINFO">
<span class="feedbackPanelINFO">Updated Information Summary</span>
</li>
</ul>
</span>]]></component></ajax-response>
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
However, Ajax Debug in IE6:
INFO:
INFO: Initiating Ajax POST request on
/nlx/home?wicket:interface=:1:bioDataForm:formTable:bioDataFormSet:saveData:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=
0.579954127866638
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (1799 characters)
INFO:
<?xml version="1.0" encoding="UTF-8"?><ajax-response><component
id="bioDataForm_formTable_bioDataFormSet_summaryDetails" ><![CDATA[<td
id="bioDataForm_formTable_bioDataFormSet_summaryDetails"
style="display:block;">
<table width="100%" border="0">
<tr>
<th width="28%" bgcolor="#666666"
scope="row">Full Name </th>
<td width="72%" bgcolor="#99CC00">
<span>Mr.</span> <span></span>
<span></span> <span></span>
</td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Date of
Birth </th>
<td bgcolor="#99CC00"></td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">State of
Origin </th>
<td bgcolor="#99CC00"></td>
</tr>
<tr>
<th bgcolor="#666666"
scope="row">Nationality</th>
<td bgcolor="#99CC00">Nigeria</td>
</tr>
<tr>
<th bgcolor="#666666" scope="row">Marital
Status </th>
<td bgcolor="#99CC00"></td>
</tr>
</table>
</td>]]></component><component
id="bioDataForm_formTable_bioDataFormSet_feedback" ><![CDATA[<span
id="bioDataForm_formTable_bioDataFormSet_feedback" bgcolor="#99CC00">
<ul>
<li class="feedbackPanelINFO">
<span class="feedbackPanelINFO">Updated Information Summary</span>
</li>
</ul>
</span>]]></component></ajax-response>
INFO: Response parsed. Now invoking steps...
ERROR: Error while parsing response: Unknown runtime error
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: 234 9 273 2 555
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Web: www.dabarobjects.com <http://www.dabarobjects.com>
Blog: blog.dabarobjects.com <http://blog.dabarobjects.com>
Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/
Get A Free Blog:
http://blogs.cowblock.net/
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user