Bug 32387 - DataGrid (build 20041119) ignores CDATA blocks in item
Summary: DataGrid (build 20041119) ignores CDATA blocks in item
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Sandbox Taglibs (show other bugs)
Version: nightly
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 12:31 UTC by Carlo de Wolf
Modified: 2004-11-29 18:40 UTC (History)
0 users



Attachments
Patch (18.58 KB, patch)
2004-11-27 15:23 UTC, Nestor Boscan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo de Wolf 2004-11-25 12:31:32 UTC
Example 4 is not working. It uses a CDATA block to display a radiobox which 
doesn't appear in the generated html code.
Comment 1 Carlo de Wolf 2004-11-25 14:00:55 UTC
org.apache.taglibs.datagrid.helper.XmlHelper ignores CDATA_SECTION_NODE nodes.
Comment 2 Carlo de Wolf 2004-11-25 18:18:51 UTC
--- jakarta-taglibs-
sandbox/datagrid/src/org/apache/taglibs/datagrid/helper/XmlHelper.java:1.1  
Thu Nov 25 14:25:43 2004
+++ jakarta-taglibs-
sandbox/datagrid/src/org/apache/taglibs/datagrid/helper/XmlHelper.java      
Thu Nov 25 15:46:20 2004
@@ -20,7 +20,7 @@
     {
       child = list.item (index);

-      if (child.getNodeType () == Node.TEXT_NODE)
+      if (child.getNodeType () == Node.TEXT_NODE || child.getNodeType() == 
Node.CDATA_SECTION_NODE)
         text.append (child.getNodeValue ());
     }
Comment 3 Nestor Boscan 2004-11-27 15:23:11 UTC
Created attachment 13557 [details]
Patch