Details
Description
When working on getting multiple ICEfaces portlets running on a page (although this issue could apply to multiple "includes" as well), there was a problem with AJAX push updates. The format of the updates looks like this:
<updates><update address="_id19:_id20-2-0"><![CDATA[<td id="_id19:_id20-2-0">Fri, 15:21:20</td>]]></update><update address="_id19:_id20-2-1"><![CDATA[<td id="_id19:_id20-2-1">Fri, 15:21:20</td>]]></update></updates><updates><update address="_id19:_id20-2-0"><![CDATA[<td id="_id19:_id20-2-0">Fri, 15:21:20</td>]]></update><update address="_id19:_id20-2-1"><![CDATA[<td id="_id19:_id20-2-1">Fri, 15:21:20</td>]]></update></updates>
It's hard to spot on first glance but this is invalid XML as it has two root elements ( <update></update> ). This causes the browsers parser to be unhappy and the updates cannot be applied to the views. Each browser handles invalid XML in different ways so the behaviour is dependent on the browser's implementation. Safari seems to accept the first updates document and throw away the second. Firefox balks completely. I did not try IE.
<updates><update address="_id19:_id20-2-0"><![CDATA[<td id="_id19:_id20-2-0">Fri, 15:21:20</td>]]></update><update address="_id19:_id20-2-1"><![CDATA[<td id="_id19:_id20-2-1">Fri, 15:21:20</td>]]></update></updates><updates><update address="_id19:_id20-2-0"><![CDATA[<td id="_id19:_id20-2-0">Fri, 15:21:20</td>]]></update><update address="_id19:_id20-2-1"><![CDATA[<td id="_id19:_id20-2-1">Fri, 15:21:20</td>]]></update></updates>
It's hard to spot on first glance but this is invalid XML as it has two root elements ( <update></update> ). This causes the browsers parser to be unhappy and the updates cannot be applied to the views. Each browser handles invalid XML in different ways so the behaviour is dependent on the browser's implementation. Safari seems to accept the first updates document and throw away the second. Firefox balks completely. I did not try IE.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13732 | Wed May 02 17:58:08 MDT 2007 | mircea.toma | Cover also the case when no view identifiers are received -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/SendUpdates.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13662 | Fri Apr 27 14:31:11 MDT 2007 | mircea.toma | Create a macro command if multiple commands are to be sent -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/SendUpdates.java
MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/command/Macro.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13660 | Fri Apr 27 11:16:25 MDT 2007 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/bridge/src/command.js
|