Clean debug display and test display.
This commit is contained in:
parent
2d6e8b1639
commit
c5893435ec
6 changed files with 4 additions and 14 deletions
Binary file not shown.
Binary file not shown.
BIN
dist/test.jar
vendored
BIN
dist/test.jar
vendored
Binary file not shown.
BIN
dist/xid.jar
vendored
BIN
dist/xid.jar
vendored
Binary file not shown.
|
@ -321,7 +321,6 @@ public class Presenter
|
|||
}
|
||||
}
|
||||
|
||||
System.out.println ("childIndex=" + childIndex);
|
||||
if (child == null)
|
||||
{
|
||||
tagsData = null;
|
||||
|
@ -331,9 +330,7 @@ public class Presenter
|
|||
// Searching for the ID value of the child.
|
||||
String childId;
|
||||
|
||||
System.out.println ("child" + child);
|
||||
NamedNodeMap attrsChild = child.getAttributes ();
|
||||
System.out.println ("attrsChild=" + attrsChild);
|
||||
|
||||
if (attrsChild == null)
|
||||
{
|
||||
|
@ -385,16 +382,13 @@ public class Presenter
|
|||
}
|
||||
else
|
||||
{
|
||||
System.out.println ("TagsDataByIndex detected.");
|
||||
switch (tagsData.getIterationStrategy ())
|
||||
{
|
||||
case ONLY_FIRST_ROW:
|
||||
System.out.println ("ONLY FIRST ROW");
|
||||
result.append (process (child, datas, webappPath, prefix, errorOutput));
|
||||
break;
|
||||
|
||||
case ONLY_ROWS_WITH_ID:
|
||||
System.out.println ("ONLY ROWS WITH ID");
|
||||
for (int i = 0; i < childrenCount; i++)
|
||||
{
|
||||
NamedNodeMap attrs2 = children.item (i).getAttributes ();
|
||||
|
@ -801,13 +795,12 @@ public class Presenter
|
|||
NamedNodeMap attrs = node.getAttributes ();
|
||||
Node idAttr = attrs.getNamedItem ("id");
|
||||
|
||||
System.out.println ("process=" + node);
|
||||
if (idAttr != null)
|
||||
{
|
||||
result.append (Presenter.processElementWithId (node, attrs, idAttr, datas, webappPath, prefix, errorOutput));
|
||||
}
|
||||
else
|
||||
{System.out.println ("basically");
|
||||
{
|
||||
result.append (Presenter.processElementBasically (node, datas, webappPath, prefix, errorOutput));
|
||||
}
|
||||
|
||||
|
|
|
@ -182,7 +182,8 @@ class Test
|
|||
|
||||
|
||||
errorMessage = new StringBuffer ();
|
||||
html = Presenter.doXid ("<table>\n <tr id='identity'><td>noid</td><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>\n</table>", datas, "", errorMessage);
|
||||
htmlSource = "<table>\n <tr id='identity'><td>noid</td><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>\n</table>";
|
||||
html = Presenter.doXid (htmlSource, datas, "", errorMessage);
|
||||
|
||||
System.out.println ("----------------------------");
|
||||
System.out.println ("datas = new TagsData ();");
|
||||
|
@ -194,11 +195,7 @@ class Test
|
|||
System.out.println ("datas.setContent (\"identity\", 2, \"prenom\", \"Christophe\");");
|
||||
|
||||
System.out.println ("+");
|
||||
System.out.println ("<table>");
|
||||
System.out.println (" <tr id='identity'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
||||
System.out.println (" <tr id='identity2'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
||||
System.out.println (" <tr id='identity3'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
||||
System.out.println ("</table>");
|
||||
System.out.println (htmlSource);
|
||||
System.out.println ("=>");
|
||||
System.out.println (html);
|
||||
|
||||
|
|
Loading…
Reference in a new issue