GWT加入“;nullnull";创建HTML小部件时
我以html表格格式返回从csv文件生成的列表:GWT加入“;nullnull";创建HTML小部件时,html,gwt,html-table,Html,Gwt,Html Table,我以html表格格式返回从csv文件生成的列表: <span class="gwt-HTML"> <div id="productList"> nullnullnullnullnull <table cellspacing="0"> <tbody> <tr> <th>Type Name</th> <th>Class Name
<span class="gwt-HTML">
<div id="productList">
nullnullnullnullnull
<table cellspacing="0">
<tbody>
<tr>
<th>Type Name</th>
<th>Class Name</th>
<th>Sub Class Name</th>
<th>Minor Class Name</th>
<th>Country Origin</th>
<th>SKU</th>
结果变量是html字符串:
<div id="productList">
<table cellspacing="0">
<tbody>
<tr>
<th>Type Name</th>
<th>Class Name</th>
<th>Sub Class Name</th>
<th>Minor Class Name</th>
<th>Country Origin</th>
<th>SKU</th>
...etc
类型名
类名
子类名称
次要类名
原籍国
SKU
等
我已检查以确保结果字符串不包含null。有人知道为什么会这样吗?非常奇怪…您是否检查了cvs文件的编码?你可能在编辑器中看不到空字符。你能告诉我“结果”代表什么吗?请提供更多详细信息。我怀疑这与csv文件有关,我在调试器中检查了字符串,在生成GWT HTML对象之前它看起来很好。它在之后添加空值,因此在将其解析为HTML时肯定没有得到任何东西。请试试这个。在添加到RootPanel之前,还要检查res的值。这应该是一件小事。这只是一个猜测。是的,原来是一个解析错误。我觉得自己很笨。谢谢你的帮助!
<div id="productList">
<table cellspacing="0">
<tbody>
<tr>
<th>Type Name</th>
<th>Class Name</th>
<th>Sub Class Name</th>
<th>Minor Class Name</th>
<th>Country Origin</th>
<th>SKU</th>
...etc