Fixed demo text.

This commit is contained in:
Christian P. MOMON 2016-09-21 23:18:53 +02:00
parent ae61a822df
commit 0625d36fda
2 changed files with 6 additions and 2 deletions

View file

@ -85,7 +85,7 @@ public class Index_xhtml extends HttpServlet
StringList display = new StringList();
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
display.append("+").appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"superman\");")).appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.setContents(\"pseudo\", \"Superman\");")).appendln("<br/>");
display.append("=>").appendln("<br/>");
display.append(StringEscapeUtils.escapeXml(htmlTarget)).appendln("<br/>");
@ -116,7 +116,7 @@ public class Index_xhtml extends HttpServlet
StringList display = new StringList();
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
display.append("+").appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"spiderman\");")).appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.setContent(\"pseudo\", \"spiderman\");")).appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"foreground: red\");")).appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"background: blue\");")).appendln("<br/>");
display.append(StringEscapeUtils.escapeXml("page.setAttribute(\"pseudo\", \"class\", \"superhero\");")).appendln("<br/>");

View file

@ -59,6 +59,10 @@
<td>DOM</td>
<td>new Page(document)</td>
</tr>
<tr>
<td>Page factory</td>
<td>PageFactory.instance().create("&lt;div name='pseudo'&gt;a pseudo&lt;/div&gt;")</td>
</tr>
</table>
</p>